/// <summary> /// Blind carbon copy recipients /// </summary> public TransactionalEmailBuilder WithBcc(SendContact bcc) { if (_bcc == null) { _bcc = new List <SendContact>(); } _bcc.Add(bcc); return(this); }
/// <summary> /// Carbon copy recipients /// </summary> public TransactionalEmailBuilder WithCc(SendContact cc) { if (_cc == null) { _cc = new List <SendContact>(); } _cc.Add(cc); return(this); }
/// <summary> /// When Sender is not specified, the email address will be used to send the message. /// In such cases, it must be a valid, activated sender for this account. /// See the /sender and /metasender API resources for more info. /// When Sender is specified, the Sender email address will be used to send the message, while the From email address will be displayed in the recipient's inbox. /// In such cases, it is not necessary for the From address to be validated. /// When the Sender and From domains differ, the information will be displayed in the inbox as From {from_email} via / sent on behalf of {sender_domain}. /// </summary> /// <remarks> /// If the From domain has a DMARC policy in effect(e.g.Yahoo, AOL), the message will not be delivered.Instead, it will either bounce or be considered as Spam. /// </remarks> public TransactionalEmailBuilder WithFrom(SendContact from) { _from = from; return(this); }
/// <summary> /// Specifies the sender name and email address. Used when you want to send emails on behalf of a different email address. Must be a valid, activated sender for this account. /// See the /sender and /metasender API resources for more info. /// The Sender email address will be used to send the message, while the From email address will be displayed in the recipient's inbox. /// In such cases, it is not necessary for the From address to be verified. However, the information will be displayed in the inbox as From {from_email} via / sent on behalf of {sender_domain}. /// </summary> /// <remarks> /// Note: This option is disabled by default. Contact the Support team if you want us to enable this setting on a specific API Key. /// </remarks> public TransactionalEmailBuilder WithSender(SendContact sender) { _sender = sender; return(this); }
/// <summary> /// An object containing the email address and name of the recipient, /// to whom a carbon copy with the error message is sent to in case of sending issues. Can only be used when TemplateLanguage=true. /// Equivalent to using the X-MJ-TemplateErrorReporting header through SMTP. /// </summary> public TransactionalEmailBuilder WithTemplateErrorReporting(SendContact contactForErrorNotifications) { _templateErrorReporting = contactForErrorNotifications; return(this); }
/// <summary> /// To recipients /// </summary> public TransactionalEmailBuilder WithTo(SendContact to) { _to.Add(to); return(this); }
/// <summary> /// the email address and name(optional), to which replies to this message will go. /// </summary> public TransactionalEmailBuilder WithReplyTo(SendContact replyTo) { _replyTo = replyTo; return(this); }