public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType) { Attachment attachment = new Attachment(); attachment.SetContentFromString(content, contentEncoding, mediaType); attachment.Name = name; return attachment; }
public static Attachment CreateAttachmentFromString(string content, string name) { Attachment attachment = new Attachment(); attachment.SetContentFromString(content, null, string.Empty); attachment.Name = name; return attachment; }
public static Attachment CreateAttachmentFromString(string content, ContentType contentType) { Attachment attachment = new Attachment(); attachment.SetContentFromString(content, contentType); attachment.Name = contentType.Name; return attachment; }
public static Attachment CreateAttachmentFromString(string content, ContentType contentType) { Attachment a = new Attachment(); a.SetContentFromString(content, contentType); a.Name = contentType.Name; return(a); }
public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType) { Attachment a = new Attachment(); a.SetContentFromString(content, contentEncoding, mediaType); a.Name = name; return(a); }
public static Attachment CreateAttachmentFromString(string content, string name) { Attachment a = new Attachment(); a.SetContentFromString(content, null, String.Empty); a.Name = name; return(a); }