3

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

Nimantha
  • 6,405
  • 6
  • 28
  • 69
User5590
  • 1,383
  • 6
  • 26
  • 61
  • 2
    Is the JMail DLL/component registered properly? – Rich Sep 27 '13 at 09:28
  • 1
    Actually, that error is listed in the JMail FAQ... Did you Google? http://support.activeservers.com/components//Jmail/jmail_faq.htm – Rich Sep 27 '13 at 09:29
  • @Rich i have go through that also. and in line 3 it says Copy JMail.dll to the system32 directory. (ie C:\WINNT\System32\) , but i don't have JMail.dll Can you please tell me from where to download JMail.dll – User5590 Sep 27 '13 at 09:48

2 Answers2

6

I needed to enable 32-bit Applications to true in the application pool.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
User5590
  • 1,383
  • 6
  • 26
  • 61
1

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.

Community
  • 1
  • 1
Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328