简体   繁体   English

Codeigniter如何检查电子邮件地址是否存在

[英]How to check email address exists or not in codeigniter

I want check to email address exist. 我想检查电子邮件地址是否存在。 In Codeigniter mail sent to all email address that's may be exist or not exist. 在Codeigniter中,发送到所有电子邮件地址的邮件可能存在或不存在。 Why Codeigniter email library sent mail method return always true. 为什么Codeigniter电子邮件库发送的邮件方法始终返回true。

Because there is no worldwide registration system for emails, nobody knows if an address exists or not. 由于没有针对电子邮件的全球注册系统,因此没人知道地址是否存在。 So, you have to do a try and error, means: send a mail to the address and catch the returning delivery error in the mail account which you are using for sending. 因此,您必须尝试并尝试错误,这意味着:将邮件发送到该地址,并在用于发送的邮件帐户中捕获返回的传递错误。

The Codeigniter mail library gives a true back, because sending the mail was successful.It doesn't and can't catch delivery errors. Codeigniter邮件库提供了真实的答案,因为发送邮件成功了,它不能也不能捕获传递错误。

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

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