public void SendTest_SentToAddress()
 {
     var sender = new MandrillMailSender("enter your key", null);
     sender.Send(
         new MailAttributes()
             {
                 To = new List<MailAddress>() { new MailAddress("*****@*****.**") },
                 Subject = "test",
                 Body = "test body",
                 From = new MailAddress("your email", "name")
             });
 }
Beispiel #2
0
        public void SendTest_SentToAddress()
        {
            var sender = new MandrillMailSender("enter your key", null);

            sender.Send(
                new MailAttributes()
            {
                To = new List <MailAddress>()
                {
                    new MailAddress("*****@*****.**")
                },
                Subject = "test",
                Body    = "test body",
                From    = new MailAddress("your email", "name")
            });
        }
 public UserMailer()
 {
     MailSender = new MandrillMailSender();
 }