email client lib

Unknown W. Brackets unknown at simplemachines.org
Fri Jun 2 22:02:53 PDT 2006


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;



More information about the Digitalmars-d mailing list