全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 1118|回复: 7
打印 上一主题 下一主题

谁知道2003 的PHP如何配置支持EMAIL发送

[复制链接]
跳转到指定楼层
1#
发表于 2011-1-30 17:27:12 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
论坛老想控制垃圾广告

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

谁知道的来说说 如何配置PHP.INI才能支持 需要装组件么?
2#
发表于 2011-1-30 17:35:09 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
3#
发表于 2011-1-30 17:54:14 | 只看该作者
php下这个比较常用,叫phpMailer,是一个class
不要问偶程序方面的问题,偶是程序盲。
给一个连接地址:http://www.songzi.org/blog/article.asp?id=346
4#
 楼主| 发表于 2011-1-30 17:56:59 | 只看该作者
不是程序问题 而是环境问题
5#
发表于 2011-1-30 17:58:17 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
6#
发表于 2011-1-30 17:58:43 | 只看该作者
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 =
7#
发表于 2011-1-30 23:49:02 | 只看该作者
SMTP = localhost
smtp_port = 25

自己在本机搭建一个不需要smtp验证的mail服务器即可
担心小心被别人用来SPAM
8#
发表于 2011-1-31 00:18:09 | 只看该作者
用smtp 发送邮件。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-14 21:59 , Processed in 0.061680 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表