[Mono-dev] System.Net.Mail question

Andy Waddell awaddell at fnfr.com
Wed Nov 9 12:38:43 EST 2005

I've been trying to send a simple email messge from a little Mono
program on Linux and everytime I get the mail, the body is send as a
.dat attachment.  This email is a forwading of the email generated by
the following code:


            MailAddress from = new MailAddress("test at fnfr.com", "Test");

            MailMessage msg = new MailMessage(from, new
MailAddress("awaddell at fnfr.com"));

            msg.Subject = "subject";

            msg.Body = "this is the body";


            SmtpClient mailClient = new SmtpClient("localhost", 25);



Does anybody know what's cause it to be an attachment vs. a clean simple
mail message.  The same code compiled and running on .NET (albeit with a
different smtp server) produces the expected result (i.e. no
attachment).  I don't know if it's something to do with the smtp server
running on my Linux box or something MS Outlook is doing.


Sorry if this is not an appropriate question for this group, but it
could be related to the Mono implementation of System.Net.Mail.





From: Test [mailto:test at fnfr.com] 
Sent: Wednesday, November 09, 2005 9:33 AM
To: Andy Waddell
Subject: subject



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051109/9e7e7ada/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subject.dat
Type: application/octet-stream
Size: 18 bytes
Desc: subject.dat
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051109/9e7e7ada/attachment.obj 

More information about the Mono-devel-list mailing list