public virtual SendMapiMailDefinition MakeSendMapiMailDefinition(string senderEmailAddress, string recipientEmailAddress)
 {
     if (string.IsNullOrEmpty(senderEmailAddress))
     {
         throw new ArgumentNullException("senderEmailAddress");
     }
     if (string.IsNullOrEmpty(recipientEmailAddress))
     {
         recipientEmailAddress = senderEmailAddress;
     }
     return(SendMapiMailDefinition.CreateInstance(this.Subject, "This is a Mapi System Probe message that's Submitted to Store so that Mailbox transport Submission service can process it", "IPM.Note.MapiSubmitSystemProbe", true, true, senderEmailAddress, recipientEmailAddress));
 }
Пример #2
0
 public static SendMapiMailDefinition CreateInstance(string subject, string body, string messageClass, bool doNotDeliver, bool deleteAfterSubmit, string senderEmail, string recipientEmail)
 {
     return(SendMapiMailDefinition.CreateInstance(subject, body, messageClass, doNotDeliver, false, deleteAfterSubmit, senderEmail, Guid.Empty, Guid.Empty, recipientEmail, false));
 }