public void SendPilotStudentLicenseEmail(FpOrgPilotUsedLicense license) { var model = Mapper.Map <FpOrgPilotUsedLicense, FillPerfectPilotStudentLicenceEmailViewModel>(license); string subject = "Welcome to the InterviewTools FillPerfect Pilot Program!"; // Open the template and form the message string body = ParseTemplate("Mail/Templates/FillPerfect/PilotStudentLicenseEmail.cshtml", model); new EmailUtils().Send(license.Email, subject, body, true); }
protected void SendLicenseToUser(FpOrgPilotUsedLicense user) { new FillPerfectMailController().SendPilotStudentLicenseEmail(user); }