예제 #1
0
        /// <summary>
        /// Blind carbon copy recipients
        /// </summary>
        public TransactionalEmailBuilder WithBcc(SendContact bcc)
        {
            if (_bcc == null)
            {
                _bcc = new List <SendContact>();
            }

            _bcc.Add(bcc);
            return(this);
        }
예제 #2
0
        /// <summary>
        /// Carbon copy recipients
        /// </summary>
        public TransactionalEmailBuilder WithCc(SendContact cc)
        {
            if (_cc == null)
            {
                _cc = new List <SendContact>();
            }

            _cc.Add(cc);
            return(this);
        }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 /// <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);
 }
예제 #6
0
 /// <summary>
 /// To recipients
 /// </summary>
 public TransactionalEmailBuilder WithTo(SendContact to)
 {
     _to.Add(to);
     return(this);
 }
예제 #7
0
 /// <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);
 }