public SmtpMailItemResult SendMessage(SubmissionReadOnlyMailItem submissionReadOnlyMailItem)
 {
     if (submissionReadOnlyMailItem.Recipients.Count <= 0)
     {
         throw new ArgumentException("SMTPOutProvider-SendMessage: submissionReadOnlyMailItem.Recipients.Count should be greater than 0.");
     }
     return(SmtpMailItemSender.Instance.Send(submissionReadOnlyMailItem, SubmissionConfiguration.Instance.App.UseLocalHubOnly, SubmissionConfiguration.Instance.App.SmtpOutWaitTimeOut));
 }
Beispiel #2
0
        public SmtpMailItemResult SendMessage(SubmissionReadOnlyMailItem submissionReadOnlyMailItem)
        {
            PickupFolder pickupFolder = new PickupFolder();
            SmtpResponse smtpResponse;
            string       text;

            pickupFolder.WriteMessage(submissionReadOnlyMailItem.MailItem, submissionReadOnlyMailItem.Recipients, out smtpResponse, out text);
            return(null);
        }
Beispiel #3
0
 public static SmtpMailItemResult SendMessage(SubmissionReadOnlyMailItem submissionReadOnlyMailItem)
 {
     return(OutProvider.OutProviderInstance.SendMessage(submissionReadOnlyMailItem));
 }