Esempio n. 1
0
 /// <summary>
 /// Parse an existing multipart mime body into parts
 /// </summary>
 /// <param name="contentType"></param>
 /// <param name="body"></param>
 public MultipartMimeContent(string contentType, string body)
 {
     ContentType = new MimeContentType(contentType);
     Parts       = ParseBodyIntoParts(body, Boundary);
 }
Esempio n. 2
0
 public MultipartMimeContent(MimeContentType contentType, string body)
 {
     ContentType = contentType;
     Parts       = ParseBodyIntoParts(body, Boundary);
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new multipart mime document
 /// </summary>
 public MultipartMimeContent()
 {
     ContentType = new MimeContentType("multipart/related");
     Boundary    = Guid.NewGuid().ToString("d");
     Parts       = new List <MessagePart>();
 }