|
First of all, this is awesome! I updated and my program that had been erroring out on sending mail now sends mail!!! Nice work!!!
Some SMTP servers return something like:
220-mail4.mn.rr.com Microsoft SMTP MAIL ready at Thu, 27 Feb 2003 20:01:23 -0600 Version: 220 ESMTP spoken here
Note the “-“ character in the fourth place. So the code could either check the next line or be content with a “-“ character in there.
Also, just as a note, the MS implementation accepts:
MailMessage message = new MailMessage(); message.From = “[EMAIL PROTECTED] (The Foomeister)”;
Note the name in parenthesis. My guess (I haven’t checked) is that the MS impl. strips out everything but the actual email address to pass to the SMTP server.
-elan |
patch
Description: Binary data
