Пример #1
0
        public void EmailSenderTest()
        {
            EmailSender sc  = EmailsenderBuilder.GetNewEmailSenderPlain();
            Request     req = new Request
            {
                Body    = "dfh",
                Subject = "gjh",
                From    = "jgfsrg.com",
                To      = "*****@*****.**"
            };

            Assert.Equals(sc.SendMail(req), 2);
        }
Пример #2
0
        public ReturnItem Post([FromBody] Request value)
        {
            var sender = EmailsenderBuilder.GetNewEmailSenderPlain();

            return(sender.SendMail(value));
        }