postal icon indicating copy to clipboard operation
postal copied to clipboard

html_body is not working in API

Open rccess opened this issue 3 years ago • 4 comments

i am using API code in PHP

plain_body working fine but when same code running with html_body , API return error

Message-Id: {"status":"internal-server-error"}

when i checked logs, found this error

invalid byte sequence in UTF-8

image

can you please advise on the same

Thanks

rccess avatar Jan 06 '23 02:01 rccess

are you able to provide a copy of the html_body you sent?

willpower232 avatar Jan 06 '23 14:01 willpower232

https://pastebin.com/yDN7dkQP

rccess avatar Jan 06 '23 14:01 rccess

Looks like you have a few odd characters in the message

image

willpower232 avatar Jan 06 '23 14:01 willpower232

no that not a problem because when we replace " with /" that is working

https://pastebin.com/XaCRE8rJ

another concern is with /api/v1/send/raw

{ "status": "error", "time": 0.0, "flags": {}, "data": { "code": "FromAddressMissing", "message": "There was no valid From address found in this email." } }

image

since from domain is proper verified and working with smtp credential under same smtp server

Send as any also enabled on the same server

can you please advise on the same ?

rccess avatar Jan 06 '23 14:01 rccess