_INetSmtpMail设置后报错!
不知道为什么!
请大侠指出!
谢谢!
源码如下:
#include <INet.au3>
$s_SmtpServer = "smtp.gmail.com"
$s_FromName = "My Name"
$s_FromAddress = "*@gmail.com";*帐号
$s_ToAddress = "*@gmail.com";*帐号
$s_Subject = "My Test UDF"
Dim $as_Body[2]
$as_Body[0] = "Testing the new email udf"
$as_Body[1] = "Second Line"
$Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)
$err = @error
If $Response = 1 Then
MsgBox(0, "Success!", "Mail sent")
Else
MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf
[ 本帖最后由 sark 于 2008-9-19 20:12 编辑 ] |