查看: 955|回复: 12
|
用PHP来send mail ( 没人要帮我?)(谢谢来帮我的人)
[复制链接]
|
|
我刚刚install了php,mysql和iis。我要怎样用php来send mail?SMTP要set吗?
[ 本帖最后由 L3MoN_TeA 于 6-3-2006 09:30 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 1-3-2006 07:04 AM
|
显示全部楼层
需要开启你的Windows的IIS , 然后Configure SMTP |
|
|
|
|
|
|
|
楼主 |
发表于 1-3-2006 09:34 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 1-3-2006 04:00 PM
|
显示全部楼层
PHP & MYSQL - 打开php.ini SET SMTP 和 sendmail_from
iis - smtp="localhost";然后, 你的邮件回到 queue 文件里。 |
|
|
|
|
|
|
|
楼主 |
发表于 1-3-2006 09:13 PM
|
显示全部楼层
这是原本的file
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only
smtp_port = 25
sendmail_from= me@localhost.com ; for Win32 only
; For Win32 only.
;sendmail_from = me@example.com
我应该改成怎样? |
|
|
|
|
|
|
|
楼主 |
发表于 2-3-2006 05:44 AM
|
显示全部楼层
怎样解决这个问题?
Warning: mail(): SMTP server response: 550 No SMTP server defined. Use real server address instead of 127.0.0.1 in your account in c:\inetpub\wwwroot\fyp1\mail.php on line 11 |
|
|
|
|
|
|
|
发表于 3-3-2006 10:49 AM
|
显示全部楼层
IIS -> Default SMTP Virtual Server 的 Properties
在access tab 里点击connection,选择“All except the list below",点击OK
在access tab 里点击relay,选择“All except the list below",点击OK
PHP.ini 里的设置
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only
smtp_port = 25
sendmail_from= yourname@yourdomainname.com ; for Win32 only
试试看可以吗~~ |
|
|
|
|
|
|
|
楼主 |
发表于 6-3-2006 02:40 AM
|
显示全部楼层
原帖由 ~真理~ 于 3-3-2006 10:49 AM 发表
IIS -> Default SMTP Virtual Server 的 Properties
在access tab 里点击connection,选择“All except the list below",点击OK
在access tab 里点击relay,选择“All except the list below",点 ...
谢谢你的帮忙 |
|
|
|
|
|
|
|
发表于 6-3-2006 09:53 AM
|
显示全部楼层
原帖由 L3MoN_TeA 于 6-3-2006 02:40 AM 发表
谢谢你的帮忙
成功了吗? 我之前也面对这样的问题.现在只是可以send mail 给local account... |
|
|
|
|
|
|
|
楼主 |
发表于 6-3-2006 09:17 PM
|
显示全部楼层
原帖由 ~真理~ 于 3-3-2006 10:49 AM 发表
IIS -> Default SMTP Virtual Server 的 Properties
在access tab 里点击connection,选择“All except the list below",点击OK
在access tab 里点击relay,选择“All except the list below",点 ...
Warning: mail(): SMTP server response: 550 No SMTP server defined. Use real server address instead of 127.0.0.1 in your account in c:\inetpub\wwwroot\fyp11\mail2.php on line 13
是什么问题? |
|
|
|
|
|
|
|
楼主 |
发表于 6-3-2006 09:24 PM
|
显示全部楼层
我的setting对吗?
还有我是用php-4.4.2-installer,mysql-4.1.18-win32.zip和IIS的
[ 本帖最后由 L3MoN_TeA 于 6-3-2006 09:28 PM 编辑 ] |
|
|
|
|
|
|
|
楼主 |
发表于 8-3-2006 02:55 AM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 11-3-2006 05:44 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|