Thread overview | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 01, 2006 email client lib | ||||
---|---|---|---|---|
| ||||
IIRC someone posted a module that made it real nice to send e-mails. I can't seem to find the link. Anyone happen to remember where it is? It was something like 6-12 months ago. |
June 02, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | I don't know, but it's dirt easy. Are you looking for something that just does the sendmail communication for you, or a simple SMTP client?
I've written and used both in D. I personally prefer SMTP, because it works on Windows too, but sendmail can (can) be more efficient and requires less runtime setup (e.g. hostname, username, and password.)
-[Unknown]
> IIRC someone posted a module that made it real nice to send e-mails. I can't seem to find the link. Anyone happen to remember where it is? It was something like 6-12 months ago.
|
June 02, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Unknown W. Brackets | In article <e5od0i$2kk4$1@digitaldaemon.com>, Unknown W. Brackets says... > >I don't know, but it's dirt easy. Are you looking for something that just does the sendmail communication for you, or a simple SMTP client? > >I've written and used both in D. I personally prefer SMTP, because it works on Windows too, but sendmail can (can) be more efficient and requires less runtime setup (e.g. hostname, username, and password.) > >-[Unknown] > > I was hoping to go the SMTP route. I have tried it with telnet (successfully) and tried to write a function to do it (with a little less success). I'm a bit hampered by not having a known good SMTP server accessible. If you would be interested in sharing your code I would really appreciate that. What I'm looking at doing is a lib for a sort of automatic assert failure reporter that would e-mail in a stack-trace and other misc state when an assert trips. |
June 02, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | BCS wrote: > Unknown W. Brackets says... > >> I don't know, but it's dirt easy. Are you looking for something >> that just does the sendmail communication for you, or a simple SMTP >> client? >> >> I've written and used both in D. I personally prefer SMTP, because >> it works on Windows too, but sendmail can (can) be more efficient >> and requires less runtime setup (e.g. hostname, username, and >> password.) > > I was hoping to go the SMTP route. I have tried it with telnet > (successfully) and tried to write a function to do it (with a little > less success). I'm a bit hampered by not having a known good SMTP > server accessible. Don't you ever send e-mail from school/office/home? Why not use the same SMTP server that your computer uses? > If you would be interested in sharing your code I > would really appreciate that. What I'm looking at doing is a lib for > a sort of automatic assert failure reporter that would e-mail in a > stack-trace and other misc state when an assert trips. |
June 03, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Georg Wrede | In article <4480BA1B.7050001@nospam.org>, Georg Wrede says...
>
>BCS wrote:
>> Unknown W. Brackets says...
>>
>>> I don't know, but it's dirt easy. Are you looking for something that just does the sendmail communication for you, or a simple SMTP client?
>>>
>>> I've written and used both in D. I personally prefer SMTP, because it works on Windows too, but sendmail can (can) be more efficient and requires less runtime setup (e.g. hostname, username, and password.)
>>
>> I was hoping to go the SMTP route. I have tried it with telnet (successfully) and tried to write a function to do it (with a little less success). I'm a bit hampered by not having a known good SMTP server accessible.
>
>Don't you ever send e-mail from school/office/home? Why not use the same SMTP server that your computer uses?
>
My dev system is on a closed network and I haven't had any need for an SMTP server till now.
If anyone has any suggestions as to a free server program that I could use (Linux or win) I would like that. I think I have sendmail up and running on the Linux box but it seems to be a bit flakey (most likely because I don't know how to make it work right).
|
June 03, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | Sure. First, I recommend Exim, if you're on Linux or similar. Otherwise, I'll have to suggest something like Argosoft or IMail, but I don't really like either of those. Windows SMTP servers aren't so good in my experience. Maybe I should fix that, but I don't have time at the moment. http://www.unknownbrackets.com/examples/d/smtp.zip This is just really trimmed down code from my use of it, and I didn't spend much time on it. There are comments, but if you have any questions or if anything doesn't make sense, let me know. It's not in a class, because I was too lazy to slop all the functions (which are much more separate in my use of them) into a class, but I can do that if it makes it more understandable. It also isn't really written for sending emails to multiple recipients in one round. It would only take minor changes for this, though (just RCPT TO, really.) As it would happen, I'm using this for a daemon that runs on a server, checks various services on the server, diskspace, the like, and sends off various emails if anything is a rye. Similar to your plan, somewhat. -[Unknown] > I was hoping to go the SMTP route. I have tried it with telnet (successfully) > and tried to write a function to do it (with a little less success). I'm a bit > hampered by not having a known good SMTP server accessible. If you would be > interested in sharing your code I would really appreciate that. What I'm looking at doing is a lib for a sort of automatic assert failure > reporter that would e-mail in a stack-trace and other misc state when an assert > trips. |
June 03, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Unknown W. Brackets | Unknown W. Brackets wrote:
> Sure.
>
> First, I recommend Exim, if you're on Linux or similar. Otherwise, I'll have to suggest something like Argosoft or IMail, but I don't really like either of those. Windows SMTP servers aren't so good in my experience. Maybe I should fix that, but I don't have time at the moment.
>
> http://www.unknownbrackets.com/examples/d/smtp.zip
>
> This is just really trimmed down code from my use of it, and I didn't spend much time on it. There are comments, but if you have any questions or if anything doesn't make sense, let me know.
>
> It's not in a class, because I was too lazy to slop all the functions (which are much more separate in my use of them) into a class, but I can do that if it makes it more understandable.
>
> It also isn't really written for sending emails to multiple recipients in one round. It would only take minor changes for this, though (just RCPT TO, really.)
>
> As it would happen, I'm using this for a daemon that runs on a server, checks various services on the server, diskspace, the like, and sends off various emails if anything is a rye. Similar to your plan, somewhat.
>
> -[Unknown]
Nice! So, is there an SMTP client available also? And how about a POP3 client?
Thanks;
|
June 03, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to kris | I haven't written an SMTP server in D. This is just an SMTP client.
A POP3 client would be reasonably trivial. The more difficult one is IMAP. FTP is similarly trivial.
SMTP is definitely the easiest, though. Easier than HTTP, imho.
-[Unknown]
> Unknown W. Brackets wrote:
>> Sure.
>>
>> First, I recommend Exim, if you're on Linux or similar. Otherwise, I'll have to suggest something like Argosoft or IMail, but I don't really like either of those. Windows SMTP servers aren't so good in my experience. Maybe I should fix that, but I don't have time at the moment.
>>
>> http://www.unknownbrackets.com/examples/d/smtp.zip
>>
>> This is just really trimmed down code from my use of it, and I didn't spend much time on it. There are comments, but if you have any questions or if anything doesn't make sense, let me know.
>>
>> It's not in a class, because I was too lazy to slop all the functions (which are much more separate in my use of them) into a class, but I can do that if it makes it more understandable.
>>
>> It also isn't really written for sending emails to multiple recipients in one round. It would only take minor changes for this, though (just RCPT TO, really.)
>>
>> As it would happen, I'm using this for a daemon that runs on a server, checks various services on the server, diskspace, the like, and sends off various emails if anything is a rye. Similar to your plan, somewhat.
>>
>> -[Unknown]
>
> Nice! So, is there an SMTP client available also? And how about a POP3 client?
>
> Thanks;
|
June 03, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | Sorry, I think I misread your message. I thought you meant a known good server software.
You can always use any single SMTP server you set up on a box to send off emails, as long as the host is accessible. You'll have to provide a username and password if you want it to relay the message, though, to someone else.
-[Unknown]
> I was hoping to go the SMTP route. I have tried it with telnet (successfully)
> and tried to write a function to do it (with a little less success). I'm a bit
> hampered by not having a known good SMTP server accessible. If you would be
> interested in sharing your code I would really appreciate that. What I'm looking at doing is a lib for a sort of automatic assert failure
> reporter that would e-mail in a stack-trace and other misc state when an assert
> trips.
|
June 07, 2006 Re: email client lib | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | On Sat, 3 Jun 2006 00:39:46 +0000 (UTC), BCS <BCS_member@pathlink.com> wrote: > In article <4480BA1B.7050001@nospam.org>, Georg Wrede says... >> >> BCS wrote: >>> Unknown W. Brackets says... >>> >>>> I don't know, but it's dirt easy. Are you looking for something >>>> that just does the sendmail communication for you, or a simple SMTP >>>> client? >>>> >>>> I've written and used both in D. I personally prefer SMTP, because >>>> it works on Windows too, but sendmail can (can) be more efficient >>>> and requires less runtime setup (e.g. hostname, username, and >>>> password.) >>> >>> I was hoping to go the SMTP route. I have tried it with telnet >>> (successfully) and tried to write a function to do it (with a little >>> less success). I'm a bit hampered by not having a known good SMTP >>> server accessible. >> >> Don't you ever send e-mail from school/office/home? Why not use the same >> SMTP server that your computer uses? >> > My dev system is on a closed network and I haven't had any need for an SMTP > server till now. > > If anyone has any suggestions as to a free server program that I could use > (Linux or win) I would like that. I think I have sendmail up and running on the > Linux box but it seems to be a bit flakey (most likely because I don't know how > to make it work right). This is a bit of a plug for the SMTP server I work on, but .. You can download, install and run SurgeMail for FREE for 30 days, or even get a FREE 5 user license :) http://netwinsite.com/surgemail/ If you need any help with the server you can email me at work (the email I use here is my work address). If you need any help with any aspect of POP3, IMAP, or SMTP I can also help, just use the same address. Regan |
Copyright © 1999-2021 by the D Language Foundation