/// <summary> /// Initializes a new instance of the <see cref="CampaignTemplate" /> class. /// </summary> /// <param name="poolname">Name of your custom IP Pool to be used in the sending process.</param> /// <param name="from">Your e-mail with an optional name (e.g.: John Doe <[email protected]>).</param> /// <param name="replyTo">To what address should the recipients reply to (e.g. John Doe <[email protected]>).</param> /// <param name="subject">Default subject of email..</param> /// <param name="templateName">Name of template..</param> /// <param name="attachFiles">Names of previously uploaded files that should be sent as downloadable attachments.</param> /// <param name="utm">Utm marketing data to be attached to every link in this e-mail..</param> public CampaignTemplate(string poolname = default(string), string from = default(string), string replyTo = default(string), string subject = default(string), string templateName = default(string), List <string> attachFiles = default(List <string>), Utm utm = default(Utm)) { this.Poolname = poolname; this.From = from; this.ReplyTo = replyTo; this.Subject = subject; this.TemplateName = templateName; this.AttachFiles = attachFiles; this.Utm = utm; }
/// <summary> /// Initializes a new instance of the <see cref="EmailContent" /> class. /// </summary> /// <param name="body">List of e-mail body parts, with user-provided MIME types (text/html, text/plain etc).</param> /// <param name="merge">A key-value collection of custom merge fields, shared between recipients. Should be used in e-mail body like so: {firstname}, {lastname} etc..</param> /// <param name="attachments">Attachments provided by sending binary data.</param> /// <param name="headers">A key-value collection of custom e-mail headers..</param> /// <param name="postback">Postback header..</param> /// <param name="envelopeFrom">E-mail with an optional name to be used as the envelope from address (e.g.: John Doe <[email protected]>).</param> /// <param name="from">Your e-mail with an optional name (e.g.: John Doe <[email protected]>).</param> /// <param name="replyTo">To what address should the recipients reply to (e.g. John Doe <[email protected]>).</param> /// <param name="subject">Default subject of email..</param> /// <param name="templateName">Name of template..</param> /// <param name="attachFiles">Names of previously uploaded files that should be sent as downloadable attachments.</param> /// <param name="utm">Utm marketing data to be attached to every link in this e-mail..</param> public EmailContent(List <BodyPart> body = default(List <BodyPart>), Dictionary <string, string> merge = default(Dictionary <string, string>), List <MessageAttachment> attachments = default(List <MessageAttachment>), Dictionary <string, string> headers = default(Dictionary <string, string>), string postback = default(string), string envelopeFrom = default(string), string from = default(string), string replyTo = default(string), string subject = default(string), string templateName = default(string), List <string> attachFiles = default(List <string>), Utm utm = default(Utm)) { this.Body = body; this.Merge = merge; this.Attachments = attachments; this.Headers = headers; this.Postback = postback; this.EnvelopeFrom = envelopeFrom; this.From = from; this.ReplyTo = replyTo; this.Subject = subject; this.TemplateName = templateName; this.AttachFiles = attachFiles; this.Utm = utm; }