Sending email via workers with mailjet API
The mailjet api provides curl command:
This is what I'm trying to do in my worker:
Am I doing something wrong? I get 400 error
2 Replies
not enough context and you cut off your code. 400 Error from the worker? from the mailjet api? What's the exact response code and response body from mailjet, is what I'd troubleshoot first. One big thing I notice is curl is in sandbox mode and workers isn't
It just said 400 bad request, as if it isn't sending json. I gave up and ended up using zohoflow which was much easier, but I also had a problem sending json so ended up sending form data. I cut off the code because of the character limit. I don't have it anymore, thanks for the reply though.
400 error was from the mailjet API, all it said was bad request. Mailjet support told me email sent but obviously it did not
If I try again in future I will update here but I'm just trying to get this project completed in the next two weeks and don't have much spare time for working on my computer right now