简体   繁体   English

如何使用mailgun拒绝电子邮件?

[英]How to reject an email using mailgun?

Does anyone know how to reject an email received through mailgun (mailgun.com)? 有谁知道如何拒绝通过mailgun收到的电子邮件(mailgun.com)? As a comparison, a similar service, cloudmailin allow you to return a status code of 404 or 403 to reject an email, and the sender of that email will receive a delivery failure notice. 作为比较,类似的服务,cloudmailin允许您返回状态代码404或403以拒绝电子邮件,并且该电子邮件的发件人将收到传递失败通知。 I am trying the same with mailgun, however, mailgun will attemp to redeliver with longer and longer interval once it receive the 404 or 403 status code. 我正在尝试使用mailgun,但是,一旦收到404或403状态代码,mailgun将尝试重新启动更长和更长的间隔。

What I have tried: Mailgun documentation doesn't say anything about this. 我尝试过:Mailgun文档没有说明这一点。 Mailgun support is not responding to my emails. Mailgun支持不响应我的电子邮件。

If I got an answer from mailgun I will post it here as an update. 如果我从mailgun得到答案,我会在这里作为更新发布。

Your app could return 406 code to mailgun to stop retrying. 您的应用可以将406代码返回给mailgun以停止重试。 We added that feature recently and haven't yet updated our documentation regarding that. 我们最近添加了该功能,但尚未更新我们的相关文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM