找回密码
 加入
搜索
查看: 1743|回复: 2

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

[复制链接]
发表于 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邮件的相关功能吧!要不然是拒绝接收的。
 楼主| 发表于 2011-12-30 19:15:59 | 显示全部楼层
这个还不是问题,直接编译下就错误了,收不到这还没到那块,谢谢老大了。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-17 12:18 , Processed in 0.075163 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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