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")
             });
 }
Example #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")
            });
        }
Example #3
0
 public UserMailer()
 {
     MailSender = new MandrillMailSender();
 }