Content-Type: multipart/mixed;
boundary="_b38f6a69-73d6-474d-86c5-9bbd9c3f5459_"
MIME-Version: 1.0
From: < [email protected]>
Sender: < [email protected]>
To: < [email protected]>
Subject: This is a test.
Message-ID: < [email protected]>
Date: Sun, 2 Dec 2007 22:43:32 +0800
X-MS-Journal-Report:
System.Web.Mail
and the local SMTP server, you can avoid the roundtrip to the network and use the pickup directory.
eMail = new MailMessage();
eMail.BodyFormat = MailFormat.Text;
eMail.To = "[email protected]";
eMail.Body = _Body;
eMail.From = _SendFrom;
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(eMail);
eMail = new MailMessage();
eMail.BodyFormat = MailFormat.Text;
eMail.To = "[email protected]";
eMail.From = _SendFrom;
eMail.Body = _Body;
SmtpMail.SmtpServer = "localhost";
eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 1;
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory"] =
"C:\\Inetpub\\mailroot\\Pickup";
SmtpMail.Send(eMail);
本文出自 “Joshua Tu's Blog” 博客,转载请与作者联系!