示例#1
0
        static void Main(string[] args)
        {
            IContent content = new setContent("This is a message");
            Email    newPost = new Email();

            newPost.setSender("From Erhan");
            newPost.setReciver("To Someone");
            newPost.setContent(content);

            EmailSender sender = new EmailSender();

            sender.Send(newPost);

            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            IContent content = new setContent("This is a message");
            Email newPost = new Email();
            newPost.setSender("From Erhan");
            newPost.setReciver("To Someone");
            newPost.setContent(content);

            EmailSender sender = new EmailSender();
            sender.Send(newPost);

            Console.ReadLine();
        }