[Mono-list] Tiny patch for System.Web.Mail

Per Arneng pt99par@student.bth.se
Fri, 28 Feb 2003 11:55:56 +0100


Hi!

Thnx for the patch !!! .. just changed it. Im currently working on the ad=
dress=20
parsing issue. Will go away over the weekend so will fix that next week. =
If u=20
find any more problems/bugs then please send more mails about it :)

Best regards=20
   Per Arneng

On Friday 28 February 2003 03:13 am, Elan Feingold wrote:
> 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 =3D new MailMessage();
>
> message.From =3D "foo@bar.com (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