def METHOD_NAME(email, url, locale):
    t = templates.get(locale, None)
    if t == None:
        t = templates.get('en')
    if locale != 'en':
        url += '?locale=' + locale
    m = parser.parsestr((t % (email, url)).encode('utf8'))
    m['Date'] = formatdate(localtime=True)
    s = smtplib.SMTP('osiris.mit.edu', 587)
    s.starttls()
    s.login('jis', password)
    try:
        retval = s.METHOD_NAME('appinventor@osiris.mit.edu', [email,], str(m))
    except:
        import traceback
        traceback.print_exc()
    s.quit()