[Mono-dev] System.Net.Mail question
Matthijs ter Woord
matthijsterwoord at gmail.com
Wed Nov 9 13:07:51 EST 2005
Hi Andy,
You could try using the Indy project. Indy is a socket library which implements many common-used internet protocols. If you're planning to look into Indy, make sure you grab the FCL build, which stands for a stand alone build for the .NET framework, as Indy is a cross-platform project, running on Windows and Linux natively (FreeBSD works partially), and .NET for Windows (using P/Invokes), and .NET natively (no P/Invokes, runs on mono).
Regards,
Matthijs ter Woord
Team member of the Indy Project
----- Original Message -----
From: Andy Waddell
To: mono-devel-list
Sent: Wednesday, November 09, 2005 6:38 PM
Subject: [Mono-dev] System.Net.Mail question
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);
mailClient.Send(msg);
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.
--andy
------------------------------------------------------------------------------
From: Test [mailto:test at fnfr.com]
Sent: Wednesday, November 09, 2005 9:33 AM
To: Andy Waddell
Subject: subject
------------------------------------------------------------------------------
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051109/f0e57ca0/attachment.html
More information about the Mono-devel-list
mailing list