问题描述
我已经设置了一个新帐户,但未验证我的域.我想先进行测试并确认邮件发送,然后再进行验证并添加付款信息.
I have setup a new account and not verified my domain. I would like to test and confirm mail-send before proceeding with verification and adding payment information.
我尝试使用沙盒方法和api键(包括smtp)进行curl.我还尝试使用顶级帐户的邮件地址作为收件人来使用我的域.但是每次发送命令(curl和smtp都)时,我都会收到"Mailgun Magnificent API"响应-但没有邮件传递.到目前为止,Mailgun API看起来并不那么宏伟...我已经多次浏览了文档,但是找不到我可能做错的事情.
I have tried curl using the sandbox method and api key (including smtp). I have also tried to use my domain using the top account mail-address as recipient. But each time the send command (both curl and smtp) I get "Mailgun Magnificent API" response - but no mail is delivered. So far the Mailgun API does not look so Magnificent... I have gone through the documentation multiple times and cannot find what I might be doing wrong..
非常感谢您的帮助.
推荐答案
在通过php curl通过api发送电子邮件时遇到了同样的问题.我通过更改API基本URL https://api.mailgun.net/v3/YOUR_DOMAIN_NAME 解决了该问题到 https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages .这是因为他们的api不仅用于发送.希望这会有所帮助.
Faced the same issue while sending emails via api by php curl. I solved it by changing API Base URL https://api.mailgun.net/v3/YOUR_DOMAIN_NAME to https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages.It's because their api is not only for sending.Hope this helps.
这篇关于无法通过API或SMTP通过Mailgun发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!