/// <summary> /// Default constructor /// </summary> public DripCampaign(EmailRecipient recipient) { this.recipient = recipient; cc = new Collection <EmailRecipient>(); bcc = new Collection <EmailRecipient>(); sender = new EmailSender(); email_data = new Dictionary <string, object>(); tags = new Collection <string>(); esp_account = String.Empty; locale = String.Empty; }
/// <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>(); }
/// <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>(); }
/// <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, (object)templateData, recipient) { }