PHP Email [英] PHP Email

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

问题描述



你好,


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

需要哪些设置?


拜托,指导我

提前致谢。

解决方案

Michael Vilain写道:


文章< 11 ********************** @ u32g2000prd.googlegroups .com>,

pradeep< pw ******* @ gmail.comwrote:


>大家好,

如何从我的服务器使用PHP发送电子邮件?
需要哪些设置?

请指导我
提前致谢。



RTFM:

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



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

它需要验证吗?

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

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

Pear Mail让事情变得更容易。


-

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

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

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

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


我有一个与这篇文章相关的问题:


我们使用2种不同的基于Linux的服务器:一种用于Web(PHP,MySQL)

和另一个邮件(Qmail,SquirrelMail等)。我们的网络服务器

位于同一地点,邮件服务器安装在这里。对于PHP mail()

函数能够使用邮件服务器,我将php.ini修改为

SMTP指向邮件服务器的IP。然而它仍然使用网络服务器的

sendmail作为SMTP MTA。


请帮助


Max写道:


我有一个与此帖有关的问题:


我们正在使用2个不同的基于Linux的服务器:一个用于Web(PHP,MySQL)

和另一个用于邮件(Qmail,SquirrelMail等)。我们的网络服务器

位于同一地点,邮件服务器安装在这里。对于PHP mail()

函数能够使用邮件服务器,我将php.ini修改为

SMTP指向邮件服务器的IP。然而它仍然使用网络服务器的

sendmail作为SMTP MTA。


请帮助



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

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


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


-

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

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

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

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



Hello all,

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

please, guide me
Thanks in advance.

解决方案

Michael Vilain wrote:

In article <11**********************@u32g2000prd.googlegroups .com>,
pradeep <pw*******@gmail.comwrote:

>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
==================


I have a question related to this post:

We are using 2 different Linux based servers: one for web (PHP, MySQL)
and another for the mail (Qmail, SquirrelMail e.t.c.). Our webserver
is co-located and mail server is installed here. For the PHP mail()
function to be able to use the mail server, I modified php.ini for
SMTP to pointi to the mail server'' IP. Yet it still uses web server''s
sendmail as SMTP MTA.

Please help


Max wrote:

I have a question related to this post:

We are using 2 different Linux based servers: one for web (PHP, MySQL)
and another for the mail (Qmail, SquirrelMail e.t.c.). Our webserver
is co-located and mail server is installed here. For the PHP mail()
function to be able to use the mail server, I modified php.ini for
SMTP to pointi to the mail server'' IP. Yet it still uses web server''s
sendmail as SMTP MTA.

Please help

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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