[Mono-dev] System.Net.Mail question

Jonathan Gilbert 2a5gjx302 at sneakemail.com
Wed Nov 9 22:43:39 EST 2005


At 09:38 AM 09/11/2005 -0800, Andy Waddell wrote: 
[snip]
>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 its 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.

Could it have to do with the BodyFormat field? I believe it defaults to
HTML, and mono's implementation might be attaching a plaintext version of
the message with the HTML one as the main MIME body, using MIME type
'multipart/alternate' as suggusted by RFC 1521 et al.

Try setting it to .Text if you want a plaintext message. :-)

Jonathan Gilbert



More information about the Mono-devel-list mailing list