from google.appengine.api import urlfetch

def sendMandrillEmail():
    json_mandrill = {'key': 'YOUR_API_KEY', 'message': {'html':
        '<p>Example HTML content</p>', 'subject': 'Test subject',
        'from_email': 'example@email.com', 'from_name': 'Example Name',
        'to': [{'email': 'example.to@email.com'}]}}
url = 'https://mandrillapp.com/api/1.0/messages/send.json'
result = urlfetch.fetch(url=url, payload=json.dumps(json_mandrill), method=
    urlfetch.POST, headers={'Content-Type':
    'application/x-www-form-urlencoded'})
Using Mandrill/MailChimp on Google App Engine to send confirmation emails