1

Currently, Scrapy Spidermon extension only shows an example to send email using Amazon Simple Email Service. Is it possible to use Mandrill instead? And how?

1
  • Please consider marking the answer as "accepted" if it helped you :) Apr 17, 2019 at 17:36

1 Answer 1

1

You will have to write your own "Mandril Send Email" class.

Use SendSESEmail as a start point, but instead of handling AWS keys, you use your credentials for Mandrill.

You send_message should look something like this:

def send_message(self, message):
    s = smtplib.SMTP('smtp.mandrillapp.com', 587)
    s.login(MANDRILL_USERNAME, MANDRILL_PASSWORD)
    s.send_message(message)

(based on this snippet: https://mandrill.com/#script-python)

Hope it helps you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.