/// <summary>
 /// Constructor to set subject and body sections of e-mail to the system generated values using pre-set e-mail templates. Used when system-generated notification e-mails are to be used to notify contacts. 
 /// Usage: EmailQueueService.EmailQueueMessage(new Contact(&lt;Project|Student&gt;),EmailType.&lt;Project|Student&gt;);
 /// </summary>
 /// <param name="type">Type of email template that will be use to generate system generated e-mail subject and body</param>
 public EmailQueueMessage(Contact contact, EmailType type)
     : this(contact.Id, contact.ContactType.ToString(), contact.FirstName, contact.LastName, contact.Guid, contact.Email)
 {
     Subject = GetEmailSubject(type);
     Body = GetEmailBody(contact.FirstName, contact.LastName, contact.Guid, type);
 }
 public EmailQueueMessage(Contact contact, EmailType type, string rankingText, params string[] receipents)
     : this(contact.Id, contact.ContactType.ToString(), contact.FirstName, contact.LastName, contact.Guid, receipents)
 {
     Subject = GetEmailSubject(type);
     Body = GetEmailBody(contact.FirstName, contact.LastName, contact.Guid, type, rankingText);
 }
 private void SendConfirmationMessage(Project p)
 {
     Contact c = new Contact(p);
     EmailQueueMessage eqm = new EmailQueueMessage(c, EmailType.ProjectSubmit, GetRankingConfirmationText(p), c.Email + "," + _confMesgReceipents);
     EmailQueueService.QueueMessage(eqm);
 }