postal icon indicating copy to clipboard operation
postal copied to clipboard

Send through API and always return "norcipients"

Open dowe-are opened this issue 5 years ago • 11 comments

I have been looking for a long time, but I can't find the answer, so I can only ask you。 1)U4IL5 LK{$ )JQGP@W~5Q

dowe-are avatar Apr 09 '21 09:04 dowe-are

I need your help

dowe-are avatar Apr 09 '21 09:04 dowe-are

I need you

dowe-are avatar Apr 09 '21 09:04 dowe-are

I think you need to use to[] instead of to

willpower232 avatar Apr 09 '21 09:04 willpower232

Thank you for your reply, but it doesn't seem to work. It's still "NoRecipients" HPP HNG@{WCG7U7ZXWEY~M5

dowe-are avatar Apr 09 '21 09:04 dowe-are

What program are you using?

willpower232 avatar Apr 09 '21 10:04 willpower232

''apipost''. Similar to "Postman"

dowe-are avatar Apr 09 '21 10:04 dowe-are

Unfortunately I don't know how to work apipost or if it has an english version :sweat_smile:

The API accepts JSON so I assume the page you're filling out creates a JSON object to send otherwise you would get a different error message.

If you are able to see what it is sending, you need to make it look something like this

image

willpower232 avatar Apr 09 '21 10:04 willpower232

I tried to imitate you, and I succeeded. Thank you very much. 2}R{ $(KPVBVP8 4K 06BC5

dowe-are avatar Apr 09 '21 10:04 dowe-are

Glad you figured it out, feel free to close the issue if there are no other problems.

willpower232 avatar Apr 09 '21 15:04 willpower232

@willpower232 i am using same process but still "norcipients" issue can you please advise on it

{ "to": [ "[email protected]" ], "from": "[email protected]",
"subject": "Email API Test", "plain_body": "hello this email api checking" }

image

rccess avatar Nov 24 '22 11:11 rccess

I'm also having this issue, submitting a request from golang against /api/v1/send/message

{"to":["[email protected]"],"from":"[email protected]","sender":"[email protected]","subject":"test","plain_body":"this is a test"}

returns

"status":"error","time":0.0,"flags":{},"data":{"code":"NoRecipients","message":"There are no recipients defined to receive this message"}}

edit: disregard, http.NewRequest(...) was missing a Content-Type header.

rvIceBreaker avatar Apr 22 '24 19:04 rvIceBreaker