{"library":"mandrill","title":"Mandrill (deprecated, use mailchimp-transactional)","description":"Mandrill is a Python client library for the Mandrill email as a service platform. As of version 1.0.60, the library is deprecated and replaced by mailchimp-transactional. No new releases are expected; users should migrate to the new library.","language":"python","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["pip install mandrill"],"cli":null},"imports":["import mandrill\nm = mandrill.Mandrill(api_key='YOUR_API_KEY')","from mandrill import Mandrill"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import mandrill\n\nm = mandrill.Mandrill(api_key=os.environ.get('MANDRILL_API_KEY', ''))\ntry:\n    result = m.messages.send(message={'subject': 'Hello', 'from_email': 'sender@example.com', 'to': [{'email': 'recipient@example.com'}]})\n    print(result)\nexcept mandrill.Error as e:\n    print('Error:', e)","lang":"python","description":"Sends an email using the Mandrill API. Requires MANDRILL_API_KEY environment variable.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}