Пример #1
0
        public void Send(List <String> recipients, string subject, EmailBody body)
        {
            var mailer = new SendGridMail();
            var msg    = mailer.CreateMessage(_from, recipients, subject, body.Html, body.Text);

            mailer.SendMessage(msg);
        }
Пример #2
0
        public void SendMail()
        {
            var mailer = new SendGridMail();
            var msg    = mailer.CreateMessage("*****@*****.**", new List <string>()
            {
                "*****@*****.**"
            },
                                              "Test from SendGrid",
                                              "<p>Dit is een test!</p>", "Dit is een test!");

            mailer.SendMessage(msg);
        }