{"id":24005,"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.","status":"deprecated","version":"1.0.60","language":"python","source_language":"en","source_url":"https://github.com/mandrill/mandrill-python","tags":["mandrill","email","deprecated","mailchimp-transactional"],"install":[{"cmd":"pip install mandrill","lang":"bash","label":"Install deprecated Mandrill client"}],"dependencies":[],"imports":[{"wrong":"import mandrill","symbol":"Mandrill","correct":"from mandrill import Mandrill"}],"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."},"warnings":[{"fix":"Migrate to the mailchimp-transactional library: pip install mailchimp-transactional","message":"This library is deprecated in favor of mailchimp-transactional. New features and bug fixes are not being added.","severity":"deprecated","affected_versions":"1.0.60 and all versions"},{"fix":"Use 'from mandrill import Mandrill' instead of 'from mandrill import MandrillAPI'.","message":"In version 1.0.50, the class name changed from MandrillAPI to Mandrill. Old import will break.","severity":"breaking","affected_versions":">=1.0.50"},{"fix":"Install with 'pip install mandrill --use-deprecated=legacy-resolver' or use mailchimp-transactional.","message":"The library does not support Python 3.12+ due to removed distutils dependency. Some users report install failures.","severity":"gotcha","affected_versions":">=3.12"}],"env_vars":null,"search_vec":"'1.0.60':24 'client':11 'deprec':2,28,49 'email':16,48 'expect':39 'librari':12,26,46 'mailchimp':5,33,51 'mailchimp-transact':4,32,50 'mandril':1,7,15,47 'migrat':42 'new':36,45 'platform':20 'python':10 'releas':37 'replac':30 'servic':19 'transact':6,34,52 'use':3 'user':40 'version':23","created_at":"2026-05-01T08:10:46.563552+00:00","updated_at":"2026-05-01T08:10:46.563552+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.60","cli_name":"","cli_version":null,"type":"library","homepage":"https://bitbucket.org/mailchimp/mandrill-api-python/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/mandrill/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["communication","crm-productivity"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}