private void SendMailForInactiveEnrolment(IEnrolment enrolment)
        {
            try
            {
                PropertyBag.Add("enrolment", enrolment);

                MailMessage message = RenderMailMessage("inactiveenrolment", null, PropertyBag);
                message.Subject = ConfigurationManager.AppSettings["RefundingSubject"];
                message.To.Add(new MailAddress(ConfigurationManager.AppSettings["RefundingAddress"]));
                message.From = new MailAddress(ConfigurationManager.AppSettings["ConfirmationFromAddress"]);

                DeliverEmail(message);
            }
            catch (Exception e)
            {

            }
        }
Exemple #2
0
 public ManageEnrolmentController(IEnrolment enrolment, ICoordinator coordinator)
 {
     _enrolment   = enrolment;
     _coordinator = coordinator;
 }
 private string GetMollieDescription(IEnrolment enrolment)
 {
     return string.Format("{0}/onbekend/{1}", enrolment.StudentNumber, enrolment.Name);
 }