2
我有以下的「捲曲」命令Mailgun工作:轉換捲曲httplib的標頭
curl -s --user 'api:key-xxxxxx' \
https://api.mailgun.net/v3/sandboxyyyyyy.mailgun.org/messages \
-F from='Excited User <[email protected]>' \
-F [email protected] \
-F [email protected] \
-F subject='Hello' \
-F text='Testing some Mailgun awesomness!'
我需要使用「httplib的」在Python(!不請求)發送電子郵件與Mailgun。如何將curl命令轉換爲httplib.HTTPSConnection請求中使用的HTTP頭('POST',URL,params,headers)?