问题
I have 4 templates but one returns error: "reject_reason": "invalid-sender"
.
I didn't find this error. in Docs.
I have 4 templates in my account and current template has following structure:
- Template Slug:
contact-home
- From Address :
info@somecomp.com
- From Name:
SOME_COMP
++ template as HTML.
This is a request I send from API Logs:
Full Request
{
"template_name": "contact-home",
"template_content": [
{
"name": "example name",
"content": "example content"
}
],
"message": {
"dest_mail": "mymail@gmail.com",
"merge": "true",
"to": [
{
"email": "mymail@gmail.com"
}
],
"merge_vars": [
{
"rcpt": "mymail@gmail.com",
"vars": [
{
"name": "FNAME",
"content": "name"
}
]
}
]
},
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
Full response
[
{
"email": "abc@gmail.com",
"status": "rejected",
"_id": "a305475c544a4f12a52f5a2b205c2505",
"reject_reason": "invalid-sender"
}
]
I don't think its PHP problem because 3 other templates have the same structure and I use one PHP method.
Thank you,
回答1:
I think its Mandrill issue.
The fix is:
- open template
- remove sender mail
- press Publish
- set the same mail
- press Publish
Now its work.
If you need additional info let me know
Thanks
来源:https://stackoverflow.com/questions/20237899/get-invalid-sender-error-in-mandrill-when-try-to-send-template