xiaosan000 发表于 2011-12-30 17:59:56

求高手帮忙看下我这段代码哪不对呢,邮箱账号密码都正确,但是出错。

#include <SmtpMailer.au3>
$s_SmtpServer = "smtp.163.com" ; smtp服务器 address for the smtp-server to use - REQUIRED
$s_FromName = "keyrec" ; <strong><font color="#FF0000">邮件</font></strong>发送人 name from who the email was sent
$s_FromAddress = "xiaosan00@163.com" ; <strong><font color="#FF0000">邮件</font></strong>发送者地址address from where the mail should come
$s_ToAddress = "xiaosan00@163.com" ; <strong><font color="#FF0000">邮件</font></strong>发送给谁 destination address of the email - REQUIRED
$s_Subject = "key_test ComputerName:" & @ComputerName ;<strong><font color="#FF0000">邮件</font></strong>标题 subject from the email - can be anything you want it to be
$as_Body = 'test'
$s_AttachFiles = "" ; 附件地址 the file you want to attach- leave blank if not needed
$s_CcAddress = "" ; address for cc - leave blank if not needed
$s_BccAddress = "" ; address for bcc - leave blank if not needed
$s_Username = "xiaosan00" ; 用户名 username for the account used from where the mail gets sent - REQUIRED
$s_Password = "xiaosan123" ; 密码password for the account used from where the mail gets sent - REQUIRED
$IPPort = 25 ; 发送端口
$ssl = 0 ; 安全连接

水木子 发表于 2011-12-30 18:55:56

邮箱需要开启接收 Smtp邮件的相关功能吧!要不然是拒绝接收的。

xiaosan000 发表于 2011-12-30 19:15:59

这个还不是问题,直接编译下就错误了,收不到这还没到那块,谢谢老大了。
页: [1]
查看完整版本: 求高手帮忙看下我这段代码哪不对呢,邮箱账号密码都正确,但是出错。