Exemple #1
0
        public EmailSendGridService(SmtpEmailConfig emailConfig)
        {
            this.emailConfig = emailConfig;

            // Create credentials, specifying your user name and password.
            var credentials = new NetworkCredential(emailConfig.SmtpUserName, emailConfig.SmtpPassword);

            // Create an Web transport for sending email.
            this.transportWeb = new Web(credentials);
        }
Exemple #2
0
 public EmailSendGridService()
     : this(SmtpEmailConfig.CreateDefault())
 {
 }