public async Task <bool> SendEmailNotfication(String eMailBody, String eMailSubject, String toAddress, String ccAddress, String bccAddress, DateTime?deliveryDate = null, string from = null) { AppSendService.SendClient client = new AppSendService.SendClient(); await client.sendEMAILAsync(Configuaration.ServiceEmail, eMailBody, eMailSubject, toAddress, ccAddress, bccAddress, deliveryDate); return(true); }
public async Task <bool> SendSMS(string AccountName, string Cellphone, string MsgContent) { AppSendService.SendClient client = new AppSendService.SendClient(); switch (AccountName) { case SMSAccounts.smsDGPUsername: await client.sendDGPSMSAsync(Cellphone, MsgContent); break; case SMSAccounts.smsVPNUsername: await client.sendVPNSMSAsync(Cellphone, MsgContent); break; case SMSAccounts.smsHadirUsername: await client.sendHadirSMSAsync(Cellphone, MsgContent); break; case SMSAccounts.smsSPUsername: await client.sendSPSMSAsync(Cellphone, MsgContent); break; case SMSAccounts.smsTest: await client.sendNCRPSMSAsync(Cellphone, MsgContent); break; default: return(false); } return(true); }
public async Task <bool> EmployeeEvaluationNotification(string eMailBody, string eMailSubject, string responsibleDepartment, string phoneExtension, string toAddress, string ccAddress, string bccAddress, DateTime?deliveryDate = null, string from = null) { AppSendService.SendClient client = new AppSendService.SendClient(); await client.sendEMAILAsync(Configuaration.ServiceEmail, eMailBody, eMailSubject, toAddress, ccAddress, bccAddress, deliveryDate); return(true); }