如何在php中使用mail()函数? [英] How to use the mail() function in php?
本文介绍了如何在php中使用mail()函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我需要帮助..
如何在php中使用mail()功能?当我执行邮件功能时,我会继续收到此错误消息:
hello every one, i need help..
how can i use the mail() funtion in php? when ever i execute the mail function i continuesly receive this error message:
警告:mail()[function.mail]:无法连接到mailserver atlocalhost端口25,验证您的SMTP和smtp_port在php.ini中设置或在...中使用ini_set()
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in...
我需要做什么才能连接我的localhost邮件服务器?
有人可以帮我吗?
提前感谢.. (^_^)
--nert
what do i need to do in order for me to connect with my localhost mailserver?
can anyone help me with this?
thanks in advance..(^_^)
--nert
推荐答案
你好每一个,我需要帮助..
怎么样我可以在php中使用mail()功能吗?当我执行邮件功能时,我会继续收到此错误消息:
我需要做什么才能连接我的localhost邮件服务器?
有人可以帮我吗?
提前谢谢.. (^_^)
--nert
hello every one, i need help..
how can i use the mail() funtion in php? when ever i execute the mail function i continuesly receive this error message:
what do i need to do in order for me to connect with my localhost mailserver?
can anyone help me with this?
thanks in advance..(^_^)
--nert
只要按照消息说的那样做。在PHP.INI中查找SMTP,端口和(如果是Windows)设置:
Just do what the message says. Look in your PHP.INI for the SMTP, port and (If Windows) for the settings:
展开 | 选择 | Wrap | 行号
我有类似的问题
i从教程网站下载了这段代码,并将其保存在
c:\ apache \\\\\\\\\\\\\\\\\\\\\\\\\
这是我下载的代码:
well i have a similar problem
i downloaded this code from a tutorial website, and save it on
c:\apache\htdocs\testsendemail\index.php
this is the code that i downloaded:
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);> E xpand | 选择 | Wrap | 行号
i试过这个东西,但我仍然收到同样的错误信息..我错过了一些先生吗?
i tried this stuff, but i still recieve the same error message.., am i missing something Sir?
展开 | 选择 | Wrap < span class =codeDivider> | 行号
这篇关于如何在php中使用mail()函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文