the documentation for mail sending ist depricated
mschmermer opened this issue · comments
mschmermer commented
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
}
]
}
mschmermer commented
forget to use new api 3.1