mailjet / mailjet-apiv3-python

[API v3] Python Mailjet wrapper

Home Page:https://dev.mailjet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the documentation for mail sending ist depricated

mschmermer opened this issue · comments

works not:
data = {
'Messages': [
{
"From": {
"Email": "$SENDER_EMAIL",
"Name": "Me"
},
"To": [
{
"Email": "$RECIPIENT_EMAIL",
"Name": "You"
}
],
"Subject": "My first Mailjet Email!",
"TextPart": "Greetings from Mailjet!",
"HTMLPart": "

Dear passenger 1, welcome to <a href="https://www.mailjet.com/">Mailjet!


May the delivery force be with you!"
}
]
}

works:
data = {
'Messages': [
{
"FromEmail": "MAIL",
"FromName": "Me",
"Recipients": [
{
"Email": "MAIL",
"Name": "You"
}
],
"Subject": subject,
"TextPart": text,
"HTMLPart": html
}
]
}

forget to use new api 3.1