Example #1
0
        internal static IMailingService GetMailingService()
        {
            string from     = ConfigurationManager.AppSettings["mailFrom"];
            string password = ConfigurationManager.AppSettings["mailPass"];
            string host     = ConfigurationManager.AppSettings["mailHost"];

            IMailingService mailingService = new MailingService(from, password, host);

            mailingService.IgnoreQueue();
            return(mailingService);
        }
Example #2
0
 public BLL_MailingService_Test()
 {
     _service = new MailingService("*****@*****.**", "superPass", "smtp.gmail.com");
     _service.IgnoreQueue();
 }