www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - email client lib

reply BCS <BCS pathlink.com> writes:
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.
May 31 2006
parent reply "Unknown W. Brackets" <unknown simplemachines.org> writes:
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.
Jun 01 2006
parent reply BCS <BCS_member pathlink.com> writes:
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.
Jun 02 2006
next sibling parent reply Georg Wrede <georg.wrede nospam.org> writes:
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.
Jun 02 2006
parent reply BCS <BCS_member pathlink.com> writes:
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).
Jun 02 2006
next sibling parent reply "Regan Heath" <regan netwin.co.nz> writes:
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
Jun 06 2006
next sibling parent reply Marcio <mqmnews123 sglebs.com> writes:
Regan Heath wrote:
 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
Is it written in D? :-) marcio
Jun 08 2006
parent reply "Regan Heath" <regan netwin.co.nz> writes:
On Thu, 08 Jun 2006 14:40:41 -0400, Marcio <mqmnews123 sglebs.com> wrote:
 Regan Heath wrote:
 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
Is it written in D? :-)
No, plain old C. Regan
Jun 08 2006
parent reply Marcio <mqmnews123 sglebs.com> writes:
Regan Heath wrote:
     Is it written in D? :-)
No, plain old C.
But it looks like a perfect candidate for D, no? Garbage collection, fast executable, portable code, smaller maintenance cost hopefully, etc. On the other hand, the lack of an IDE sucks... marcio
Jun 08 2006
next sibling parent reply "Regan Heath" <regan netwin.co.nz> writes:
On Thu, 08 Jun 2006 21:46:13 -0400, Marcio <mqmnews123 sglebs.com> wrote:
 Regan Heath wrote:
     Is it written in D? :-)
No, plain old C.
But it looks like a perfect candidate for D, no? Garbage collection, fast executable, portable code, smaller maintenance cost hopefully, etc.
We build for Windows, Linux, FreeBSD, Solaris (SPARC and x86), Mac OS X, .. D's not quite portable enough yet ;)
 	On the other hand, the lack of an IDE sucks...
Yeah.. I am very used to MSVC with my debugger etc. Regan
Jun 08 2006
parent reply Marcio <mqmnews123 sglebs.com> writes:
Regan Heath wrote:
 We build for Windows, Linux, FreeBSD, Solaris (SPARC and x86), Mac OS X, 
 .. D's not quite portable enough yet ;)
Not even the "GCC for D" project (GDC?) ? marcio
Jun 09 2006
parent "Regan Heath" <regan netwin.co.nz> writes:
On Fri, 09 Jun 2006 09:42:07 -0400, Marcio <mqmnews123 sglebs.com> wrote:
 Regan Heath wrote:
 We build for Windows, Linux, FreeBSD, Solaris (SPARC and x86), Mac OS  
 X, .. D's not quite portable enough yet ;)
Not even the "GCC for D" project (GDC?) ?
You may be right.. I'd have to build it on all our build machines, but it could work. I can't see the boss liking the idea tho, not for the existing/established project/product, but perhaps for new projects. Regan
Jun 09 2006
prev sibling parent Dejan Lekic <dejan nu6.org> writes:
People can write applications without IDEs too...
Jun 13 2006
prev sibling parent reply BCS <BCS pathlink.com> writes:
Nice product, easy install, easy setup, and a whole bucket-o-features 
that don't get in the way if you don't want them.

Regan Heath wrote:
 
 
 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
Jun 12 2006
parent "Regan Heath" <regan netwin.co.nz> writes:
Thanks :)

On Mon, 12 Jun 2006 08:47:26 -0700, BCS <BCS pathlink.com> wrote:
 Nice product, easy install, easy setup, and a whole bucket-o-features  
 that don't get in the way if you don't want them.

 Regan Heath wrote:
   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
Jun 12 2006
prev sibling parent Marcio <mqmnews123 sglebs.com> writes:
 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).
Have heard good things about Apache James http://james.apache.org/ marcio
Jun 08 2006
prev sibling next sibling parent reply "Unknown W. Brackets" <unknown simplemachines.org> writes:
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.
Jun 02 2006
parent reply kris <foo bar.com> writes:
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;
Jun 02 2006
parent "Unknown W. Brackets" <unknown simplemachines.org> writes:
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;
Jun 02 2006
prev sibling parent "Unknown W. Brackets" <unknown simplemachines.org> writes:
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.
Jun 02 2006