查看: 1019|回复: 14
|
php 里send email 的问题
[复制链接]
|
|
我确定SMTP在运行的状态中,Services里也运行了,但不知道设置对不对
Default SMTP virtual server -> properties -> access -> authentication -> 除了require TLS encryption,其他3个都打勾
Default SMTP virtual server -> properties -> access -> relay -> add了localhost(127.0.0.1),allow all... 打勾
php.ini里的设定
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = libx@teamseekndestroy.com
sendmail_from能不能随意设置?
我用的是SOKKIT,libx@teamseekndestroy.com是它的CRACK,变成了default
在localhost里能够send email,在C:\Inetpub\mailroot\Queue 有邮件的记录(Internet E-Mail Message文件)
我看过之前的几个旧帖,也跟着做了,但还是不能解决问题
[ 本帖最后由 cyea 于 14-6-2006 09:03 PM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 15-6-2006 10:40 AM
|
显示全部楼层
SMTP
 |
|
|
|
|
|
|
|
发表于 16-6-2006 02:52 PM
|
显示全部楼层
IIS->Default SMTP Virtual Server->Properties->Acess->Connection->All except the list below
IIS->Default SMTP Virtual Server->Properties->Acess->Relay->All except the list below
改这两个设定。 |
|
|
|
|
|
|
|

楼主 |
发表于 16-6-2006 03:27 PM
|
显示全部楼层
原帖由 hui_wooi 于 16-6-2006 02:52 PM 发表
IIS->Default SMTP Virtual Server->Properties->Acess->Connection->All except the list below
IIS->Default SMTP Virtual Server->Properties->Acess->Relay->All except th ...
改了(list是否空置?),但还是不行。
send email是不是用mail()这个function就已经足够?
fsockopen和fgets需不需要使用?
[ 本帖最后由 cyea 于 16-6-2006 03:33 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 16-6-2006 07:23 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 16-6-2006 07:47 PM
|
显示全部楼层
原帖由 hui_wooi 于 16-6-2006 07:23 PM 发表
有什么error message?
没有error message,邮件在localhost有发送,但不能发送至yahoo,hotmail等 |
|
|
|
|
|
|
|
发表于 16-6-2006 10:28 PM
|
显示全部楼层
原帖由 cyea 于 16-6-2006 07:47 PM 发表
没有error message,邮件在localhost有发送,但不能发送至yahoo,hotmail等
这样应该就对了。是不是进bulk或junk了? |
|
|
|
|
|
|
|

楼主 |
发表于 18-6-2006 06:43 PM
|
显示全部楼层
原帖由 hui_wooi 于 16-6-2006 10:28 PM 发表
这样应该就对了。是不是进bulk或junk了?
你指的是不是yahoo/hotmail等里的bulk或junk? =>没有
<?php
mail("xxx@yahoo.com","xx","xx","from:xxx@yahoo.com");
?>
coding里只有这样是否已经足够?
很乱,不知道是coding,configuration,还是电脑室server的问题 |
|
|
|
|
|
|
|

楼主 |
发表于 18-6-2006 07:03 PM
|
显示全部楼层
拜托大家了,能不能把装备/设定IIS/SMTP,简单有效的coding,到成功发送email的过程详细写出来,我担心忽略了某些细节 |
|
|
|
|
|
|
|
发表于 19-6-2006 02:37 AM
|
显示全部楼层
code没问题,setting也应该没问题。你的to是valid的email吗? |
|
|
|
|
|
|
|

楼主 |
发表于 19-6-2006 09:12 AM
|
显示全部楼层
原帖由 hui_wooi 于 19-6-2006 02:37 AM 发表
code没问题,setting也应该没问题。你的to是valid的email吗?
是,而且试过几个VALID的 |
|
|
|
|
|
|
|

楼主 |
发表于 19-6-2006 11:15 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 19-6-2006 01:16 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 20-6-2006 09:21 AM
|
显示全部楼层
原帖由 cyea 于 19-6-2006 11:15 AM 发表
那请问有没有其他网上的SERVER 免费让人使用
既然你已经设好 smtp, 不如你用 outlook express 来试用这 smtp 是否能发电邮? |
|
|
|
|
|
|
|

楼主 |
发表于 22-6-2006 01:28 AM
|
显示全部楼层
行了,是send到bulk(yahoo mail),之前我的SpamGuard是在ON的状态,所以寄到的message都直接被删除了。
为什么不能send到inbox?
我是在普通的家庭电脑成功发送email的。
但是电脑室却不能,在C:\Inetpub\mailroot\Queue里的邮件并不会发送,是什么问题?
[ 本帖最后由 cyea 于 22-6-2006 12:04 PM 编辑 ] |
|
|
|
|
|
|
| |
本周最热论坛帖子
|