如何发送验证邮件而不进入垃圾邮件文件夹

如何发送验证邮件而不进入垃圾邮件文件夹

本文介绍了如何发送验证邮件而不进入垃圾邮件文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PHP网站在创建新帐户时发送验证码。



我的问题是几个月以来,很多电子邮件都在垃圾邮件文件夹。



我想到一个解决方案是使用外部服务发送我的电子邮件,而不是简单地通过PHP中的邮件功能发送。 p>

问题:1)我应该使用什么外部服务(我想这需要一个API)?

解决方案

尝试使用您的ISP或公司的服务器作为中继。使用存在的发送地址,以便可以对其进行验证,并将其发回。您可能需要设置一个单独的域进行验证,例如 verification.example.com 。然后,您可以从 [email protected] 发送验证邮件。您可能还需要查看。


I have a PHP website that send a validation code when a new account is created.

My problem is since few months, a lot of those email goes in the spam folder.

I thought of a solution that is to use an "external service" to send my email instead of simply sending it via the mail function in PHP.

Question : 1) What external service should I use (I guess it would requires to have an API)?

解决方案

Try using your ISP's or company's server as a relay. Use a sending address which exists, so that validation can be done on it, and bounces sent back to it. You may want to setup a separate domain for verification such as verification.example.com. You could then send the validation message from [email protected]. Replace application and example as appropriate.

You may also want to look at https://serverfault.com/questions/241189/email-delivery-management-grievances#241260.

这篇关于如何发送验证邮件而不进入垃圾邮件文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 11:00