I have 4 templates, but one returns an error: "reject_reason": "invalid-sender"
.
I did not find this error. in documents.
I have 4 templates in my account, and the current template has the following structure:
- Template Slug:
contact-home
- From address:
info@somecomp.com
- On behalf of:
SOME_COMP
++ template as HTML.
This is the request I am sending from the 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 answer
[
{
"email": "abc@gmail.com",
"status": "rejected",
"_id": "a305475c544a4f12a52f5a2b205c2505",
"reject_reason": "invalid-sender"
}
]
I donβt think its a problem with PHP because 3 other templates have the same structure and I use the same PHP method.
Thanks,
source
share