0
我使用這個代碼使用傳統的ASP發送電子郵件:傳統的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 compilation error '800a03ec' Expected ';' /index.asp, line 108 Set oJMail = Server.CreateObject("JMail.SMTPMail") ----^
可以是些與我的頁面頭?
<%@ Language="javascript" %>