国外常用的api发信服务器mailgun邮件
国外常用的api发信服务器mailgunhttps://www.mailgun.com/
获取api,点击免费送的sandbox开头的域名,应用程序接口,选择,curl,会弹出api密钥
https://app.mailgun.com/app/sending/domains
代码填写后如下
curl -s --user 'api:c4f99999eb7799999fb7c49999991d9e-0e699999-fc99999d' \
https://api.mailgun.net/v3/sandbox763a499999c64ca99999ba4c9999907e.mailgun.org/messages \
-F from='sakura <sakura@sandbox763a499999c64ca99999ba4c9999907e.mailgun.org>' \
-F to=sandbox763a499999c64ca99999ba4c9999907e.mailgun.org \
-F to=1265578519@qq.com \
-F subject='测试' \
-F text='发信正常工作!'
这mailgun能用???
is not allowed to send: Free accounts are for test purposes only. Please upgrade or add the address to authorized recipients in Account Settings.
授权后成功发送
Queued. Thank you.
要先授权,先授权,然后就能发出去了
最低35刀一个月,不购买不允许发送给未授权的任意用户
{:3045:} 感谢楼主热情的分享,谢谢了! {:3030:}
页:
[1]