我正在使用此代码使用经典 ASP 发送电子邮件:
Set oJMail = Server.CreateObject("JMail.SMTPMail")
with oJMail
.Sender = "myemail"
.SenderName = "Me"
.AddRecipient "some email"
.Subject = "some subject"
.Body = "Name: " & fname & " Email:" & email & "Phone: " & phone
end with
oJMail.ServerAddress = "mysmtp:25"
oJMail.Execute
Set oJMail = Nothing
但是服务器不断抛出这个错误:
Microsoft JScript 编译错误“800a03ec” 预期的 ';' /index.asp,第 108 行 设置 oJMail = Server.CreateObject("JMail.SMTPMail") ----^
这可能与我的页眉有关吗?
<%@ Language="javascript" %>