python - How to send multiple messages to mandrill -


i have around 1000 unique mails unique content. want bulk send them mandril i.e. dont want make individual network calls every message sending. following document shows api. not define want to.

https://mandrillapp.com/api/docs/messages.python.html

what want

mandrill_client = mandrill.mandrill('your_api_key')     messages ={ message1, message2 ....}  result = mandrill_client.messages.send(messages=messages, async=true, ip_pool='main pool', send_at='example send_at') 

i not find above. want.

try this

 message = {       #other details      'from_email': 'message.from_email@example.com',      'from_name': 'example name',      'to': [{'email': 'recipient.email@example.com',              'name': 'recipient name',              'type': 'to'},2nd reciepient,....], } result = mandrill_client.messages.send(messages=messages, async=true) 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -