コード例 #1
0
        public SparkPostClientTests()
        {
            var options = new SparkPostOptions
            {
                ApiKey = Environment.GetEnvironmentVariable("SPARKPOST_APIKEY")
            };

            this.Client        = new SparkPostClient(Options.Create(options));
            this.SendingDomain = Environment.GetEnvironmentVariable("SPARKPOST_SENDINGDOMAIN");
        }
コード例 #2
0
 public SparkPostMailer(IOptions <SparkPostOptions> optionsAccessor)
 {
     _options = optionsAccessor.Value;
 }