Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            IMobileMessage mobile = Factory.GetMobileMessage();

            mobile.WriteMessage("Hello how are you? This is a sms marketing, do you wanna buy something?");
            mobile.AddRecipient("+39-319-555-7749685");
            mobile.AddRecipient("+39-320-555-7828092");
            mobile.Send();

            Console.WriteLine();

            IEmailMessage email = Factory.GetEmailMessage();

            email.WriteMessage("Please this is an e-mail verification.");
            email.AddSubject();
            email.AddAttach();
            email.AddRecipient("*****@*****.**");
            email.AddRecipient("*****@*****.**");
            email.AddRecipient("*****@*****.**");
            email.RequestReadReceipt();
            email.Send();

            Console.ReadLine();
        }