You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
@ -111,16 +111,16 @@ namespace System.Net.Mail {
|
||||
return av;
|
||||
}
|
||||
|
||||
public static AlternateView CreateAlternateViewFromString (string content, Encoding encoding, string mediaType)
|
||||
public static AlternateView CreateAlternateViewFromString (string content, Encoding contentEncoding, string mediaType)
|
||||
{
|
||||
if (content == null)
|
||||
throw new ArgumentNullException ("content");
|
||||
if (encoding == null)
|
||||
encoding = Encoding.UTF8;
|
||||
MemoryStream ms = new MemoryStream (encoding.GetBytes (content));
|
||||
if (contentEncoding == null)
|
||||
contentEncoding = Encoding.UTF8;
|
||||
MemoryStream ms = new MemoryStream (contentEncoding.GetBytes (content));
|
||||
ContentType ct = new ContentType ();
|
||||
ct.MediaType = mediaType;
|
||||
ct.CharSet = encoding.HeaderName;
|
||||
ct.CharSet = contentEncoding.HeaderName;
|
||||
AlternateView av = new AlternateView (ms, ct);
|
||||
av.TransferEncoding = TransferEncoding.QuotedPrintable;
|
||||
return av;
|
||||
|
Reference in New Issue
Block a user