邮件功能和sendmail [英] mail function and sendmail

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

问题描述

大家好,

PHP手册指出:Windows实现的邮件()

在很多方面与Unix实现有所不同。首先,它不是
使用本地二进制文件来编写消息,但只能在直接的

套接字上运行,这意味着需要在网络套接字上监听MTA
(可以在localhost或远程计算机上)。


这是否意味着Windows上不需要sendmail二进制文件?


此外,手册用于说明:


"对于可用的邮件功能,PHP必须能够在编译期间访问系统上的

sendmail二进制文件。如果您使用另一个

邮件程序,例如qmail或postfix,请务必使用随附的相应的

sendmail包装程序。 PHP将首先在您的PATH中查找

sendmail,然后在以下内容中:/ usr / bin:/ usr / sbin:/

usr / etc:/ etc:在/ usr / ucblib中:/ usr / lib目录。强烈建议您从PATH获得

sendmail。此外,编译PHP

的用户必须具有访问sendmail二进制文件的权限。


我再也找不到这个了,它仍然适用吗?

如果你正在下载PHP二进制文件,你需要担心这个吗?


谢谢


Taras

解决方案

Taras_96写道:


大家好,


PHP手册指出:Windows实现的邮件()

在很多方面与Unix实现有所不同。首先,它不是
使用本地二进制文件来编写消息,但只能在直接的

套接字上运行,这意味着需要在网络套接字上监听MTA
(可以在localhost或远程计算机上)。


这是否意味着Windows上不需要sendmail二进制文件?


此外,手册用于说明:


"对于可用的邮件功能,PHP必须能够在编译期间访问系统上的

sendmail二进制文件。如果您使用另一个

邮件程序,例如qmail或postfix,请务必使用随附的相应的

sendmail包装程序。 PHP将首先在您的PATH中查找

sendmail,然后在以下内容中:/ usr / bin:/ usr / sbin:/

usr / etc:/ etc:在/ usr / ucblib中:/ usr / lib目录。强烈建议您从PATH获得

sendmail。此外,编译PHP

的用户必须具有访问sendmail二进制文件的权限。


我再也找不到这个了,它仍然适用吗?

如果你正在下载PHP二进制文件,你需要担心这个吗?


谢谢


Taras



不,你不需要Windows上的sendmail二进制文件 - 而且从来没有,AFAIK。

您确实需要访问MTA,它可以在您的系统上运行,也可以在另一个(例如您的ISP)上运行。你在php.ini文件中设置主机。


-

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

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

Jerry Stuckle

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

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


问候,Taras_96。

回复来自Jerry Stuckle的消息,日期为2008年7月9日星期三,16:25:01,


> PHP手册指出:Windows实现的邮件()
在很多方面与Unix实现有所不同。首先,它没有使用本地二进制文件来编写消息,而只是在直接的
套接字上运行,这意味着需要在网络套接字上监听MTA(可以在本地主机上)或远程机器)。

这是否意味着Windows上不需要sendmail二进制文件?

另外,手册用来说明:

"要使Mail函数可用,PHP必须在编译期间访问系统上的
sendmail二进制文件。如果您使用其他
邮件程序,例如qmail或postfix,请务必使用随附的相应
sendmail包装程序。 PHP将首先在你的PATH中查找
sendmail,然后在下面:/ usr / bin:/ usr / sbin:/
usr / etc:/ etc:/ usr / ucblib:/ usr /库。强烈建议您从PATH获得
sendmail。此外,编译PHP的用户必须具有访问sendmail二进制文件的权限。

我再也无法在手册中找到它,是否仍然适用?
如果您正在下载PHP二进制文件,那么您需要担心这个吗?


不,你不需要Windows上的sendmail二进制文件 - 而且从来没有,AFAIK。

您确实需要访问可在您的系统上运行的MTA或另一个(例如您的ISP)的b $ b。您在php.ini文件中设置主机。



严格来说,可以在

windows系统上安装sendmail(或者至少是ssmtp)...但那是'浪费心灵。 PHP可以直接与

SMTP服务器进行交互,并且可以在php.ini中进行这样的操作。


[mail function]

;仅适用于Win32。

SMTP = localhost

smtp_port = 25


;仅适用于Win32。

; sendmail_from = me@example.com



-

真诚的你,AnrDaemon< an ******* @ freemail.ru>


AnrDaemon写道:


问候,Taras_96。

回复来自Jerry Stuckle的消息,日期为2008年7月9日星期三,16:25:01,


>> PHP手册指出:邮件的Windows实现()
有很多不同之处从Unix实现的方式。首先,它没有使用本地二进制文件来编写消息,而只是在直接的
套接字上运行,这意味着需要在网络套接字上监听MTA(可以在本地主机上)或远程机器)。

这是否意味着Windows上不需要sendmail二进制文件?

另外,手册用来说明:

"要使Mail函数可用,PHP必须在编译期间访问系统上的
sendmail二进制文件。如果您使用其他
邮件程序,例如qmail或postfix,请务必使用随附的相应
sendmail包装程序。 PHP将首先在你的PATH中查找
sendmail,然后在下面:/ usr / bin:/ usr / sbin:/
usr / etc:/ etc:/ usr / ucblib:/ usr /库。强烈建议您从PATH获得
sendmail。此外,编译PHP的用户必须具有访问sendmail二进制文件的权限。

我再也无法在手册中找到它,是否仍然适用?
如果您正在下载PHP二进制文件,那么您需要担心这个吗?


>不,你不需要Windows上的sendmail二进制文件 - 而且从来没有,AFAIK。
您确实需要访问MTA,该MTA可以在您的系统上运行,也可以在另一个(例如您的ISP)上运行。您在php.ini文件中设置主机。



严格来说,可以在

windows系统上安装sendmail(或者至少是ssmtp)...但那是'浪费心灵。 PHP可以直接与

SMTP服务器进行交互,并且可以在php.ini中进行这样的操作。



要坚持下去还有另一个毫无价值的评论,呵呵?


> [邮件功能]
;仅适用于Win32。
SMTP = localhost
smtp_port = 25

;仅适用于Win32。
; sendmail_from = me@example.com




-

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

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

Jerry Stuckle

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

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


Hi all,

The PHP manual states that: "The Windows implementation of mail()
differs in many ways from the Unix implementation. First, it doesn''t
use a local binary for composing messages but only operates on direct
sockets which means a MTA is needed listening on a network socket
(which can either on the localhost or a remote machine). "

Does this mean that the sendmail binary is NOT needed on windows?

Also, the manual used to state that:

"For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. PHP will first look for
sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/
usr/etc:/etc:/usr/ucblib:/usr/lib. It''s highly recommended to have
sendmail available from your PATH. Also, the user that compiled PHP
must have permission to access the sendmail binary."

I couldn''t find this in the manual anymore, is it still applicable?
What if you are downloading the PHP binaries, do you need to worry
about this?

Thanks

Taras

解决方案

Taras_96 wrote:

Hi all,

The PHP manual states that: "The Windows implementation of mail()
differs in many ways from the Unix implementation. First, it doesn''t
use a local binary for composing messages but only operates on direct
sockets which means a MTA is needed listening on a network socket
(which can either on the localhost or a remote machine). "

Does this mean that the sendmail binary is NOT needed on windows?

Also, the manual used to state that:

"For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. PHP will first look for
sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/
usr/etc:/etc:/usr/ucblib:/usr/lib. It''s highly recommended to have
sendmail available from your PATH. Also, the user that compiled PHP
must have permission to access the sendmail binary."

I couldn''t find this in the manual anymore, is it still applicable?
What if you are downloading the PHP binaries, do you need to worry
about this?

Thanks

Taras

No, you don''t need a sendmail binary on Windows - and never have, AFAIK.
You do need access to an MTA, which can be running on your system or
another (such as your ISP). You set the host in your php.ini file.

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


Greetings, Taras_96.
In reply to message from Jerry Stuckle dated Wednesday, July 9, 2008, 16:25:01,

>The PHP manual states that: "The Windows implementation of mail()
differs in many ways from the Unix implementation. First, it doesn''t
use a local binary for composing messages but only operates on direct
sockets which means a MTA is needed listening on a network socket
(which can either on the localhost or a remote machine). "

Does this mean that the sendmail binary is NOT needed on windows?

Also, the manual used to state that:

"For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. PHP will first look for
sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/
usr/etc:/etc:/usr/ucblib:/usr/lib. It''s highly recommended to have
sendmail available from your PATH. Also, the user that compiled PHP
must have permission to access the sendmail binary."

I couldn''t find this in the manual anymore, is it still applicable?
What if you are downloading the PHP binaries, do you need to worry
about this?

No, you don''t need a sendmail binary on Windows - and never have, AFAIK.
You do need access to an MTA, which can be running on your system or
another (such as your ISP). You set the host in your php.ini file.

Strictly speaking, it is possible to have sendmail (or at least ssmtp) on
windows system... but that''s a waste of mind. PHP can interact directly with
SMTP server and it is adwised to do it that way in php.ini.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com


--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>


AnrDaemon wrote:

Greetings, Taras_96.
In reply to message from Jerry Stuckle dated Wednesday, July 9, 2008, 16:25:01,

>>The PHP manual states that: "The Windows implementation of mail()
differs in many ways from the Unix implementation. First, it doesn''t
use a local binary for composing messages but only operates on direct
sockets which means a MTA is needed listening on a network socket
(which can either on the localhost or a remote machine). "

Does this mean that the sendmail binary is NOT needed on windows?

Also, the manual used to state that:

"For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. PHP will first look for
sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/
usr/etc:/etc:/usr/ucblib:/usr/lib. It''s highly recommended to have
sendmail available from your PATH. Also, the user that compiled PHP
must have permission to access the sendmail binary."

I couldn''t find this in the manual anymore, is it still applicable?
What if you are downloading the PHP binaries, do you need to worry
about this?

>No, you don''t need a sendmail binary on Windows - and never have, AFAIK.
You do need access to an MTA, which can be running on your system or
another (such as your ISP). You set the host in your php.ini file.


Strictly speaking, it is possible to have sendmail (or at least ssmtp) on
windows system... but that''s a waste of mind. PHP can interact directly with
SMTP server and it is adwised to do it that way in php.ini.

Gotta stick your nose in again with another worthless comment, huh?

>[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com



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


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

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