Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var email = new CustomEmail();

            // Not cascading
            //email.To("Me");
            //email.From("You");
            //email.Subject("Hi");
            //email.MessageBody("Hello there");

            //email.Send();

            email.To("Me")
            .From("You")
            .Subject("Hi")
            .MessageBody("Hello there");

            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var email = new CustomEmail();

            // Not cascading
            //email.To("Me");
            //email.From("You");
            //email.Subject("Hi");
            //email.MessageBody("Hello there");

            //email.Send();

            email.To("Me")
                 .From("You")
                 .Subject("Hi")
                 .MessageBody("Hello there");

            Console.ReadLine();
        }