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?
Asked
Active
Viewed 153 times
1
-
Please consider marking the answer as "accepted" if it helped you :) – Thiago Curvelo Apr 17 '19 at 17:36
1 Answers
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.

Thiago Curvelo
- 3,711
- 1
- 22
- 38