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

问题描述



你好,


如何从我的服务器使用PHP发送电子邮件?

需要哪些设置?


拜托,指导我

提前致谢。

解决方案



RTFM:




首先,您的服务器上是否运行了SMTP服务器?

它需要验证吗?

取决于你拥有什么以及你需要做什么,mail()函数

可以正常工作。在其他情况下,你可能需要一个包,比如

Pear Mail让事情变得更容易。


-

=== ===============

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司


==================





你在php.ini中定义了sendmail_path吗?另外,在更改你的

php.ini之后,你停止并重新启动服务器吗?


你的php.ini中的sendmail参数有什么用? ?


-

==================

删除x表示x。来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司


==================


Hello all,

How can i send email using PHP from my server ?
Which settings are necessary ?

please, guide me
Thanks in advance.

解决方案


RTFM:

http://us2.php.net/manual/en/ref.mail.php

First of all, do you have an SMTP server running on your server? Does
it require authentication?

Depending on what you have and what you need to do, the mail() function
could work fine. With other situations you might need a package such as
Pear Mail to make things easier.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================



Did you define sendmail_path in your php.ini? Also, after changing your
php.ini, did you stop and restart your server?

What do you have for your sendmail parameters in your php.ini?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这篇关于PHP Email的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 21:07