Example #1
0
        // this code is used for the SMTPAPI examples
        static void Main(string[] args)
        {
            var username = "******";
            var password = "******";
            var from = "*****@*****.**";
            var to = new List<String>
                         {
                             "*****@*****.**",
                             "*****@*****.**"
                         };

            //initialize the SMTPAPI example class
            var smtpapi = new SMTPAPI(username, password, from, to);
            var restapi = new WEBAPI(username, password, from, to);

            //use this section to test out our Web and SMTP examples!
            smtpapi.SimpleHTMLEmail();

            Console.WriteLine("Done!");
            Console.ReadLine();
        }
Example #2
0
        // this code is used for the SMTPAPI examples
        static void Main(string[] args)
        {
            var username = "******";
            var password = "******";
            var from     = "*****@*****.**";
            var to       = new List <String>
            {
                "*****@*****.**",
                "*****@*****.**"
            };

            //initialize the SMTPAPI example class
            var smtpapi = new SMTPAPI(username, password, from, to);
            var restapi = new WEBAPI(username, password, from, to);

            //use this section to test out our Web and SMTP examples!
            smtpapi.SimpleHTMLEmail();

            Console.WriteLine("Done!");
            Console.ReadLine();
        }