public string sendMailToCustomer(Customer customer) { BoundaryEmail email = new BoundaryEmail(); string fromEmail = "*****@*****.**"; string password = "******"; if (customer != null) { email.sendMail(fromEmail, password,customer); } return "send email successful"; }
public void sendMailToCustomer(Email emailSend) { BoundaryEmail email = new BoundaryEmail(); string fromEmail = "*****@*****.**"; string password = "******"; if (emailSend != null) { email.sendMailCustomer(fromEmail, password, emailSend); } // return "send email successful"; }