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); }); }
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); }); }
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); }