找回密码
 加入
搜索
查看: 3310|回复: 7

[AU3基础] 汉化版UDF里的Inetsmtpmail()的问题?

  [复制链接]
发表于 2010-11-16 09:20:13 | 显示全部楼层 |阅读模式
#include <INet.au3>
$s_SmtpServer = "mail.dqyt.petrochina"
$s_FromName = "zougk"
$s_FromAddress = "zougk@petrochina.com.cn"
$s_ToAddress = "zougk@petrochina.com.cn"
$s_Subject = "test"
;Dim $as_Body[2]
;$as_Body[0] = "Testing the new email udf"
;$as_Body[1] = "Second Line"
;MsgBox(0,'',$as_Body[0] & @CRLF & $as_Body[1])
$Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject)
$err = @error
If $Response = 1 Then
    MsgBox(0, "Success!", "Mail sent")
Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf
;返回错误代码是50:无法发送内容
发表于 2010-11-16 16:56:27 | 显示全部楼层
不用汉化版的你发成功了?
 楼主| 发表于 2010-11-16 17:04:30 | 显示全部楼层
回复 2# netegg
没有.
发表于 2010-11-16 20:40:32 | 显示全部楼层
是自己搭建的域吗?  自己搭建的 stmp 服务器有问题吗?  用个outlook客户端看看能发邮件到邮箱没有 ?
 楼主| 发表于 2010-11-17 08:00:14 | 显示全部楼层
回复 4# haodd

不是自己搭的,一直用foxmail可以正常发与接.
发表于 2010-11-19 15:54:15 | 显示全部楼层
以上有问题,我的环境是win7
发表于 2010-11-21 00:48:37 | 显示全部楼层
不是自己搭建的都要求验证
发表于 2010-11-21 04:29:21 | 显示全部楼层
回复  netegg
没有.
newuser 发表于 2010-11-16 17:04



    即然没有成功那跟汉化了的udf有何关系?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-27 23:07 , Processed in 0.084984 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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