全球主机交流论坛

标题: 谁知道2003 的PHP如何配置支持EMAIL发送 [打印本页]

作者: okyok    时间: 2011-1-30 17:27
标题: 谁知道2003 的PHP如何配置支持EMAIL发送
论坛老想控制垃圾广告

EMAIL验证是最好的办法 可是就是怎么弄都不能发送EMAIL

谁知道的来说说 如何配置PHP.INI才能支持 需要装组件么?
作者: aijusq    时间: 2011-1-30 17:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: tony1999    时间: 2011-1-30 17:54
php下这个比较常用,叫phpMailer,是一个class
不要问偶程序方面的问题,偶是程序盲。
给一个连接地址:http://www.songzi.org/blog/article.asp?id=346
作者: okyok    时间: 2011-1-30 17:56
不是程序问题 而是环境问题
作者: jiangchunlin    时间: 2011-1-30 17:58
提示: 作者被禁止或删除 内容自动屏蔽
作者: tony1999    时间: 2011-1-30 17:58
php.ini默认的是这样的(偶这个是LINUX下面的)

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = [email protected]

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =
作者: forgotten    时间: 2011-1-30 23:49
SMTP = localhost
smtp_port = 25

自己在本机搭建一个不需要smtp验证的mail服务器即可
担心小心被别人用来SPAM
作者: fangxianzhong    时间: 2011-1-31 00:18
用smtp 发送邮件。




欢迎光临 全球主机交流论坛 (https://hostloc.gdisk.cf/) Powered by Discuz! X3.4