Skip to main content

Posts

Showing posts with the label Mandrill

Sending Emails using Mandrill API in python

Mandrill is a great API for sending transactional e-mails. Transactional e-mails are emails such as order confirmations, user signups, forgotten passwords and anything that the user may receive during normal use. Mandrill  is  a simple REST API. By creating an account at Mandrill.com, you can get your API keys, and then you are ready to make calls to Mandrill. Requirements : Python 2.6+, Python 3.0+ Getting the library : The preferred method of installing the Mandrill Python API client is by using pip. $ sudo pip install mandrill Using the library: Now that you have a copy of the library in your project, you're ready to start using it. All uses of the Mandrill API start by importing the library module and instantiating the Mandrill class. import mandrill mandrill_client = mandrill . Mandrill( 'YOUR_API_KEY' ) They are different  api call categories.In that we are using messages calls Messages calls: Send a new transactional message through Mandrill: import m...