JMail.SMTPMail not working ("Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object")

StackOverflow https://stackoverflow.com/questions/19047001

  •  29-06-2022
  •  | 
  •  

문제

I am sending mail from ASP page using below code

Dim MyMail
Set MyMail = Server.CreateObject("JMail.SMTPMail")
MyMail.ServerAddress = ""
MyMail.Sender = "senderemail"
MyMail.AddRecipient  "mail@mail.com"    
MyMail.Subject = "Inquiry "
MyMail.Body = "<p>This is a response</p>"
MyMail.ContentType = "text/html" 
MyMail.Execute
Set MyMail=nothing

but its is not working. I am getting below error

Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object

도움이 되었습니까?

다른 팁

You don't seem to have that component installed (or not registered correctly). Try the built-in CDO.Message instead. See here for an example.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top