佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 957|回复: 12

用PHP来send mail ( 没人要帮我?)(谢谢来帮我的人)

[复制链接]
发表于 1-3-2006 02:38 AM | 显示全部楼层 |阅读模式
我刚刚install了php,mysql和iis。我要怎样用php来send mail?SMTP要set吗?

[ 本帖最后由 L3MoN_TeA 于 6-3-2006 09:30 PM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 1-3-2006 07:04 AM | 显示全部楼层
需要开启你的Windows的IIS , 然后Configure SMTP
回复

使用道具 举报

 楼主| 发表于 1-3-2006 09:34 AM | 显示全部楼层
要怎样Configure SMTP ?
回复

使用道具 举报

发表于 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
回复

使用道具 举报

Follow Us
发表于 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",点 ...

谢谢你的帮忙
回复

使用道具 举报


ADVERTISEMENT

发表于 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 | 显示全部楼层
还是没有人会哦?????
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 22-9-2024 03:51 AM , Processed in 0.164815 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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