4
我有4個模板,但有一個返回錯誤:"reject_reason": "invalid-sender"
。嘗試發送模板時在Mandrill中獲取「無效發件人」錯誤
我沒有找到這個錯誤。在文檔中。
我在我的帳戶4個模板和當前模板具有以下結構:
- 模板彈頭:
contact-home
- 發件人地址:
[email protected]
- 從名稱:
SOME_COMP
++模板爲HTML。
這是我從API日誌發送一個請求:
完整的請求
{
"template_name": "contact-home",
"template_content": [
{
"name": "example name",
"content": "example content"
}
],
"message": {
"dest_mail": "[email protected]",
"merge": "true",
"to": [
{
"email": "[email protected]"
}
],
"merge_vars": [
{
"rcpt": "[email protected]",
"vars": [
{
"name": "FNAME",
"content": "name"
}
]
}
]
},
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
全響應
[
{
"email": "[email protected]",
"status": "rejected",
"_id": "a305475c544a4f12a52f5a2b205c2505",
"reject_reason": "invalid-sender"
}
]
我不認爲它的PHP的問題,因爲3其他模板具有相同的結構,我使用一種PHP方法。
謝謝