Beispiel #1
0
 /// <summary>
 /// Constructor for an email
 /// </summary>
 /// <param name="template">The template ID to send</param>
 /// <param name="templateData">Object containing email template data</param>
 public Email(string template, Dictionary <string, object> templateData, EmailRecipient recipient)
 {
     this.template      = template;
     this.template_data = templateData;
     this.recipient     = recipient;
     sender             = new EmailSender();
     cc      = new Collection <EmailRecipient>();
     bcc     = new Collection <EmailRecipient>();
     tags    = new Collection <string>();
     headers = new Dictionary <string, string>();
     inline  = new EmailFileData();  // TODO: is this the right representation of inline?  Should it be a list of EmailFileData? Are other fields possibe beyond ID and Data?
     files   = new Collection <EmailFileData>();
 }
Beispiel #2
0
 /// <summary>
 /// Constructor for an email
 /// </summary>
 /// <param name="template">The template ID to send</param>
 /// <param name="templateData">Object containing email template data</param>
 public Email(string template, object templateData, EmailRecipient recipient)
 {
     this.template      = template;
     this.template_data = templateData;
     this.recipient     = recipient;
     sender             = new EmailSender();
     cc      = new Collection <EmailRecipient>();
     bcc     = new Collection <EmailRecipient>();
     tags    = new Collection <string>();
     headers = new Dictionary <string, object>();
     inline  = new EmailFileData();
     files   = new Collection <EmailFileData>();
 }