Esempio n. 1
0
        public void update(Notification notification)
        {
            String subject = "Channel " + notification.ChannelName + " has uploaded a new video!";
            String text    = subject + Environment.NewLine;

            text += "Go to " + notification.Link + " to check it out!";
            MyMail newMail = new MyMail("www.youtube.com", this.gMailAddress, subject, text);

            Console.WriteLine(this.username + ", you have recieved a new mail: " + subject);
            this.inbox.Add(newMail);
        }
Esempio n. 2
0
        public void sendMail(GoogleAccount reciever)
        {
            Console.WriteLine("Enter subject: ");
            String subject = Console.ReadLine();

            Console.WriteLine("Enter text: ");
            String text    = Console.ReadLine();
            MyMail newMail = new MyMail(this.gMailAddress, reciever.GMailAddress, subject, text);

            this.Outbox.Add(newMail);
            reciever.Inbox.Add(newMail);
        }