__author__ = 'charlesw'


import smtplib
import requests
import requests.packages.urllib3.util.ssl_

from email.mime.text import MIMEText
from bs4 import BeautifulSoup
from urllib import urlopen
import time

def sendMail(subject, body):
    msg = MIMEText(body)
    msg['Subject'] = subject
    msg['From'] = "christmas_alerts@pythonscraping.com"
    msg['To'] = "charles.wu@melbourneit.com.au"
    s = smtplib.SMTP('smtp.mit')
   #python 3
   #  s.send_message(msg)
    s.sendmail("christmas_alerts@pythonscraping.com","charles.wu@melbourneit.com.au",msg.as_string())
    s.quit()




sendMail("It's Christmas!","According xxx, it is Christmas!")
2eaa501b359cb836cae81e9afa8ae553bbb5d08f
<mask token>


def sendMail(subject, body):
    msg = MIMEText(body)
    msg['Subject'] = subject
    msg['From'] = 'christmas_alerts@pythonscraping.com'
    msg['To'] = 'charles.wu@melbourneit.com.au'
    s = smtplib.SMTP('smtp.mit')
    s.sendmail('christmas_alerts@pythonscraping.com',
        'charles.wu@melbourneit.com.au', msg.as_string())
    s.quit()


<mask token>

<mask token>


def sendMail(subject, body):
    msg = MIMEText(body)
    msg['Subject'] = subject
    msg['From'] = 'christmas_alerts@pythonscraping.com'
    msg['To'] = 'charles.wu@melbourneit.com.au'
    s = smtplib.SMTP('smtp.mit')
    s.sendmail('christmas_alerts@pythonscraping.com',
        'charles.wu@melbourneit.com.au', msg.as_string())
    s.quit()


sendMail("It's Christmas!", 'According xxx, it is Christmas!')

__author__ = 'charlesw'
<mask token>


def sendMail(subject, body):
    msg = MIMEText(body)
    msg['Subject'] = subject
    msg['From'] = 'christmas_alerts@pythonscraping.com'
    msg['To'] = 'charles.wu@melbourneit.com.au'
    s = smtplib.SMTP('smtp.mit')
    s.sendmail('christmas_alerts@pythonscraping.com',
        'charles.wu@melbourneit.com.au', msg.as_string())
    s.quit()


sendMail("It's Christmas!", 'According xxx, it is Christmas!')

__author__ = 'charlesw'
import smtplib
import requests
import requests.packages.urllib3.util.ssl_
from email.mime.text import MIMEText
from bs4 import BeautifulSoup
from urllib import urlopen
import time


def sendMail(subject, body):
    msg = MIMEText(body)
    msg['Subject'] = subject
    msg['From'] = 'christmas_alerts@pythonscraping.com'
    msg['To'] = 'charles.wu@melbourneit.com.au'
    s = smtplib.SMTP('smtp.mit')
    s.sendmail('christmas_alerts@pythonscraping.com',
        'charles.wu@melbourneit.com.au', msg.as_string())
    s.quit()


sendMail("It's Christmas!", 'According xxx, it is Christmas!')

__author__ = 'charlesw'


import smtplib
import requests
import requests.packages.urllib3.util.ssl_

from email.mime.text import MIMEText
from bs4 import BeautifulSoup
from urllib import urlopen
import time

def sendMail(subject, body):
    msg = MIMEText(body)
    msg['Subject'] = subject
    msg['From'] = "christmas_alerts@pythonscraping.com"
    msg['To'] = "charles.wu@melbourneit.com.au"
    s = smtplib.SMTP('smtp.mit')
   #python 3
   #  s.send_message(msg)
    s.sendmail("christmas_alerts@pythonscraping.com","charles.wu@melbourneit.com.au",msg.as_string())
    s.quit()




sendMail("It's Christmas!","According xxx, it is Christmas!")