×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

Please help: About using "smtpsvg.mailer" sending email. I already work on it for two days :(, please help, code is inside.

I got the error: "Mail send failure. Error was 503 must have sender and recipient first". when I 'm running this code.
<%
Set Mailer = Server.CreateObject("smtpsvg.mailer")
Mailer.FromName = "Request Info"
Mailer.FromAddress= "aaa@aaa.com"
Mailer.RemoteHost = "mail.aaa.com"
Mailer.AddRecipient "aaa", "aaa@aaa.com"
Mailer.Subject = "This is a test"
Mailer.BodyText = "This is a test"
If Mailer.SendMail then
Response.Write "Mail sent..."
Else
Response.Write "Mail send failure. Error was " & Mailer.Response
End If
Set Mailer = Nothing
%>
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Please help: About using "smtpsvg.mailer" sending email. I already work on it for two days :(, please help, code is inside.
    I got the error: "Mail send failure. Error was 503 must have sender and recipient first". when I 'm running this code.
    <%
    Set Mailer = Server.CreateObject("smtpsvg.mailer")
    Mailer.FromName = "Request Info"
    Mailer.FromAddress= "aaa@aaa.com"
    Mailer.RemoteHost = "mail.aaa.com"
    Mailer.AddRecipient "aaa", "aaa@aaa.com"
    Mailer.Subject = "This is a test"
    Mailer.BodyText = "This is a test"
    If Mailer.SendMail then
    Response.Write "Mail sent..."
    Else
    Response.Write "Mail send failure. Error was " & Mailer.Response
    End If
    Set Mailer = Nothing
    %>
    • ding........:( please take a look this.....
    • mailer定义一下试试?
      • :(.........still doesn't work. same error
    • 不知道你解决了没有,刚才看了一下,你看这样是否可以:
      把这句:
      Mailer.FromName = "Request Info"
      往后放。SMTP协议中要求先发送FROM和RECPT TO,From Name 应该是DATA的一部分,在后面才对。