I use curl and Postmark API to send an email:
curl "https://api.postmarkapp.com/email" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Postmark-Server-Token: server token" \
-d "{From: 'sender@example.com', To: 'receiver@example.com', Subject: 'Postmark test', HtmlBody: '<html><body><strong>Hello</strong> dear Postmark user.</body></html>'}"
I use my server token, custom sender and receiver. I gives me this message:
{"To":"receiver@example.com","SubmittedAt":"2017-06-29T08:27:49.1227844-04:00","MessageID":"a3c4b03d-56db-4085-913a-47c047c14216","ErrorCode":0,"Message":"OK"}
It seems that everything is ok. But the receiver don't receive anything.
Thanks in advance,