Board logo

标题: [问题求助] VBS发邮件出现错误553 authentication is required [打印本页]

作者: kevinll    时间: 2013-5-3 14:22     标题: VBS发邮件出现错误553 authentication is required

用下面的脚本发邮件(相关参数已赋值),出现错误
553 authentication is required
  1. NameSpace = "http://schemas.microsoft.com/cdo/configuration/"
  2. set Email = CreateObject("CDO.Message")
  3. Email.From = "发件人地址"
  4. Email.To = "收件人地址"
  5. Email.Subject = "测试"
  6. x="内容文件的绝对路径"
  7. y="附件绝对路径"
  8. Set fso=CreateObject("Scripting.FileSystemObject")
  9. Set myfile=fso.OpenTextFile(x,1,Ture)
  10. c=myfile.readall
  11. myfile.Close
  12. Email.Textbody = c
  13. Email.AddAttachment y
  14. with Email.Configuration.Fields
  15. .Item(NameSpace&"sendusing") = 2
  16. .Item(NameSpace&"smtpserver") = "邮箱服务器"
  17. .Item(NameSpace&"smtpserverport") = 25
  18. .Item(NameSpace&"smtpauthenticate") = 1
  19. .Item(NameSpace&"sendusername") = "用户名"  
  20. .Item(NameSpace&"sendpassword") = "密码"
  21. .Update
  22. end with
  23. Email.Send
  24. Set Email=Nothing
复制代码
我已经设置了用户名和密码啊,邮箱服务器是smtp.163.com,操作系统是WIN 2003 SERVER,需要配置哪里吗?防火墙没开。
作者: kevinll    时间: 2013-5-3 14:46

换成了QQ邮件服务器,出现错误:

503 Error: need EHLO and AUTH first !




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2