I have the following "curl" command working with Mailgun:
curl -s --user 'api:key-xxxxxx' \
https://api.mailgun.net/v3/sandboxyyyyyy.mailgun.org/messages \
-F from='Excited User <mailgun@sandboxyyyyyy.mailgun.org>' \
-F to=ToEmail1@domain.com \
-F to=ToEmail2@domain.com \
-F subject='Hello' \
-F text='Testing some Mailgun awesomness!'
I need to use "httplib" (not requests!) in Python to send emails with Mailgun. How to convert the curl command as above to HTTP headers to be used in httplib.HTTPSConnection's request('POST', URL, params, headers)?