Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.Mail/SmtpClient.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Mail/SmtpClient.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs b/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs
index d77652c1384..25569cfc074 100644
--- a/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs
+++ b/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs
@@ -140,7 +140,6 @@ namespace System.Web.Mail {
string boundary = MailUtil.GenerateBoundary();
// set the Content-Type header to multipart/mixed
- string bodyContentType = msg.Header.ContentType;
msg.Header.ContentType =
String.Format( "multipart/mixed;\r\n boundary={0}" , boundary );
@@ -152,13 +151,7 @@ namespace System.Web.Mail {
smtp.WriteBoundary( boundary );
MailHeader partHeader = new MailHeader();
- partHeader.ContentType = bodyContentType;
-
-#if NET_1_1
- // Add all the custom headers to body part as specified in
- //Fields property of MailMessageWrapper
- partHeader.Data.Add(msg.Fields.Data);
-#endif
+ partHeader.ContentType = "text/plain";
smtp.WriteHeader( partHeader );