/// <summary> /// Creates a mailer object from template /// </summary> /// <param name="orgUnitID"></param> /// <param name="mailTemplateCode"></param> /// <param name="tokenValues"></param> /// <param name="toList"></param> /// <param name="ccList"></param> /// <param name="bccList"></param> public void Compose(string Link, List<MailerRecipient> toList, List<MailerRecipient> ccList = null, List<MailerRecipient> bccList = null, List<MailerAttachment> attachments = null) { //Get MailTemplate MailTemplate mailTemplate = new MailTemplate(); string body = "Dear User"; body += "<br/><br/>"; body += "<a href='" + Link + "'>Click this link to access your Virtual Machine</a><br/>"; body += "Regards,<br/>"; body += "Ijepai"; body += "<br />"; string subject = "Your Ijepai Trial Virtual machine is ready"; //all MailTemplate entity emails are HTML Compose(subject, body, toList, true, attachments, ccList, bccList); }