예제 #1
0
        public void SendEmailWithAttachment(string recipient, string subject, string message, string attachmentName, Stream attachmentContent)
        {
            var sender = CurrentUser.Email;

            Task.Factory.StartNew(() => NotificationsHelpers.SendEmail(sender, new string [] { sender },
                                                                       new string [] { recipient }, null, subject,
                                                                       message, attachmentName, attachmentContent));
        }
예제 #2
0
 public void SendEmailWithAttachments(string sender, string recipient, IEnumerable <string> copyTo, string subject, string message,
                                      IEnumerable <MimePart> attachments)
 {
     Task.Factory.StartNew(() => NotificationsHelpers.SendEmail(sender, new string [] { recipient }, copyTo, null,
                                                                subject, message, attachments));
 }