public static void SendScheduledEmail(ScheduledEmailBlock scheduledEmailBlock, IParticipant participant) { EmailTemplateBlock et; EmailSender email; if (scheduledEmailBlock != null) { if (scheduledEmailBlock.EmailTemplateContentReference == null) et = (scheduledEmailBlock.EmailTemplate); else et = DataFactory.Instance.Get<EmailTemplateBlock>(scheduledEmailBlock.EmailTemplateContentReference); if (et != null) { email = new EmailSender(participant, et); email.Send(); } } }
public bool SendStatusMail(IParticipant participant, EmailTemplateBlock et) { EmailSender email; email = new EmailSender(participant, et); email.Send(); return true; }