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")
             });
 }
Exemplo n.º 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")
            });
        }
Exemplo n.º 3
0
 public UserMailer()
 {
     MailSender = new MandrillMailSender();
 }