[英]mail is not received after sending using phpmailer?
下面是我的代码
我在屏幕上显示成功但未收到邮件
我在 xampp 的 sendmail 文件夹中的 sendmail.ini 文件以及 php 文件夹中的 php.ini 文件中正确更改
我也检查了垃圾邮件
有人可以帮我吗谢谢!
<?php
if(mail("sender gmail address","subject","message","From: my gmail address")){
echo "success";
}
else{
echo "failed";
}
?>
感谢它现在的工作!
in C:\xampp\php\php.ini find extension=php_openssl.dll and remove the semicolon from the beginning of that line to make SSL working for gmail for localhost.
最初它被评论。
谢谢你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.