我使用curl和Postmark API发送电子邮件:
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>'}"
我使用我的服务器令牌,自定义发件人和收件人。我给了我这个消息:
{"To":"receiver@example.com","SubmittedAt":"2017-06-29T08:27:49.1227844-04:00","MessageID":"a3c4b03d-56db-4085-913a-47c047c14216","ErrorCode":0,"Message":"OK"}
似乎一切都好。但接收器没有收到任何东西。
提前致谢,
答案 0 :(得分:0)
我在邮戳上工作。请通过支持与我们联系,我们可以查看您的具体帐户,看看是否有任何待处理的内容。