예제 #1
0
 internal static async Task SendMailAsync(MailContent mailContent, string username, long userid)
 {
     await Task.Run(() =>
     {
         StartMailer(mailContent.Email, mailContent.ccAddress, mailContent.Subject, mailContent.Content, mailContent.TransactionId, mailContent.TypeOfMail, username, userid, mailContent.TypeOfMail);
     });
 }
예제 #2
0
 internal static async Task SendMailWithAttachmentAsync(MailContent mailContent, string[] fileName, string username, long userId)
 {
     await Task.Run(() =>
     {
         StartMailerWithAttachment(mailContent.Email, mailContent.ccAddress, mailContent.Subject, mailContent.Content, mailContent.TransactionId, mailContent.TypeOfMail, username, userId, fileName);
     });
 }
예제 #3
0
 internal static void SendMail(MailContent mailContent, string smsContent, string username, long userid)
 {
     StartMailer(mailContent.Email, mailContent.ccAddress, mailContent.Subject, mailContent.Content, mailContent.TransactionId, mailContent.TypeOfMail, username, userid, mailContent.TypeOfMail);
 }