Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78876 --- shadow/78876 2006-07-17 05:41:33.000000000 -0400 +++ shadow/78876.tmp.19674 2006-07-17 05:41:33.000000000 -0400 @@ -0,0 +1,146 @@ +Bug#: 78876 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Sys.Web +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: System.Web.Mail : space not needed between name and "<" + +Description of Problem: +If you look at the RFC822 : + +p36 + + A.2.3. Secretary-sent, for user of shared directory + + George Jones' secretary sends mail for George. Replies + should go to George. + + From: George Jones<[EMAIL PROTECTED]> + Sender: [EMAIL PROTECTED] + + Note that there need not be a space between "Jones" and the + "<", but adding a space enhances readability (as is the case + in other examples. + + + +Steps to reproduce the problem: +1. try this + class MainClass + { + + private static string smtpserver="10.69.100.165"; + public static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + MailMessage mail=new MailMessage(); + mail.From="Hubert FONGARNAND<[EMAIL PROTECTED]>"; + mail.To="Hubert FONGARNAND<[EMAIL PROTECTED]>"; + mail.Body="hello"; + SmtpMail.SmtpServer=smtpserver; + SmtpMail.Send(mail); + } + } + +Actual Results: +Here's the SMTP Dialog : + +220 kolabserver.fidudev.fr ESMTP Postfix + +HELO hublinux + +250 kolabserver.fidudev.fr + +RSET + +250 Ok + +MAIL FROM: <FONGARNAND<[EMAIL PROTECTED]> + +501 Bad sender address syntax + + + +Expected Results: +220 kolabserver.fidudev.fr ESMTP Postfix + +HELO hublinux + +250 kolabserver.fidudev.fr + +RSET + +250 Ok + +MAIL FROM: <[EMAIL PROTECTED]> + +250 Ok + +RCPT TO: <[EMAIL PROTECTED]> + +250 Ok + +DATA + +354 End data with <CR><LF>.<CR><LF> + +From: "Hubert FONGARNAND"<[EMAIL PROTECTED]> + +To: "Hubert FONGARNAND"<[EMAIL PROTECTED]> + +Subject: + +Content-Type: text/plain; charset="utf-8" + +Importance: normal + +Priority: normal + +Mime-Version: 1.0 + +Content-Transfer-Encoding: 8bit + + + +hello + +. + +250 Ok: queued as 5E8C6432B1 + +QUIT + +221 Bye + + + +How often does this happen? +Always + + +Additional Information: +This program work well with MS.NET + +Note that if you replace : +mail.From="Hubert FONGARNAND<[EMAIL PROTECTED]>"; +by +mail.From="Hubert FONGARNAND <[EMAIL PROTECTED]>"; +and +mail.To="Hubert FONGARNAND<[EMAIL PROTECTED]>"; +by +mail.To="Hubert FONGARNAND <[EMAIL PROTECTED]>"; + +it works + +I think it's a regexp pb... _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
