本文介绍了如何在 xampp 上使用 phpmailer 发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我一直在尝试使用 xampp 上的 php mailer 发送邮件,但我确实收到此错误消息无法发送消息.邮件程序错误:以下发件人地址失败:xxxx2@gmail.com:在未连接的情况下调用 Mail()
I have been trying to send a mail using php mailer on xampp and i do get this error saying Message could not be sent. Mailer Error: The following From address failed: xxxx2@gmail.com : Called Mail() without being connected
拜托,我需要有关如何解决此问题的帮助.这是我的代码;
please, i need help on how to fix this. Here is my code;
推荐答案
从 https://github.com/PHPMailer/PHPMailer/blob/master/examples/gmail.phps
这篇关于如何在 xampp 上使用 phpmailer 发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!