邮件发送问题 [英] mail sending problem

查看:67
本文介绍了邮件发送问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法通过"localhost"端口25连接到邮件服务器,无法验证php.ini中的"SMTP"和"smtp_port"设置,或在C:\ wamp \ www \中使用ini_set()第3行的new.php 


mail.plz帮助时出现错误?
我在Google上进行了搜索,但无法获得正确的answer.plz帮助

解决方案

可以从php.ini文件中发布[邮件功能]部分吗?

参见:
http://www.php.net/manual/en/mail.configuration.php [ ^ ]和 sendmail_path ="C:\ wamp \ sendmail.exe"(这是发送mail.exe的路径,如果您将其存储在其他路径上,则提供该路径).
保存并关闭php.ini文件.重新启动服务器.
现在您可以尝试了.
如果您遇到任何错误,则说明您在上述过程中犯了一些错误.再次执行相同的步骤(已完全测试).


Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\new.php on line 3


is the error while sending mail.plz help?
I have searched on google but i am not able to get proper answer.plz help
what changes should done in php.ini?plz explain

Can you post the section [mail function] from php.ini file?

See:
http://www.php.net/manual/en/mail.configuration.php[^] and http://www.w3schools.com/php/php_ref_mail.asp[^]

Hope it helps.


To send mail in php using wamp:
first download sendmail.exe through this link.
open sendmail (configration file)make following changes in it(if u use gmail)then,
smtp_server=smtp.gmail.com
auth_username=yourmailaddress@gmail.com
auth_password=yourpassword
pop3_server=
pop3_username=yourmailaddress@gmail.com
pop3_password=yourpassword
force_sender=yourmailaddress@gmail.com
now save it.
open php.ini file
NOTE:if you are using wampserver then click on the icon of the wampserver and u will find the php.ini file.open it and find SMTP word in it and make following changes in it,

smtp= smtp.gmail.com
smtp_port = 465
smtp_ssl=auto
sendmail_from = astikajadhav@gmail.com
sendmail_path = "C:\wamp\sendmail.exe -t"
sendmail_path = "C:\wamp\sendmail.exe"(this is the path of the send mail.exe if you stored it on the other path then give that path).
save and close php.ini file.Restart server.
now u can try.
If u got any error then you have done some mistake in above process.again do the same procedure.(It is tested fully).


这篇关于邮件发送问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆