public static void Main()
 {
     EmailSenderBase emailSender =
         new YahooEmailSender("*****@*****.**", "*****@*****.**", "Sup, guys?");
     //// new GoogleEmailSender(...)
     var sendEmailResult = emailSender.SendEmail();
     Console.WriteLine("Result: {0}", sendEmailResult ? "Success" : "Fail");
 }
Exemple #2
0
        public static void Main()
        {
            EmailSenderBase emailSender =
                new YahooEmailSender("*****@*****.**", "*****@*****.**", "Sup, guys?");
            //// new GoogleEmailSender(...)
            var sendEmailResult = emailSender.SendEmail();

            Console.WriteLine("Result: {0}", sendEmailResult ? "Success" : "Fail");
        }