>I am trying to send email through an ASP page. I had trouble using CDONTS because of a firewall issue which couldnt be resolved. So I am no tying to send the email using the Exchange Server. I tried doing this by creating an instance of Outlook. However the code crashes on the createobject with the following error:
>
>Microsoft VBScript runtime error '800a01ad'
>
>ActiveX component can't create object: 'Outlook.Application'
>
>/MailTest.asp, line 15
>
>Here is the code i am trying to run:
>Set objOutlook = CreateObject("Outlook.Application")
>Set oEmail = oOutLookObject.CreateItem(0)
>oEmail.to="
Shevy@suttonland.com"
>oEmail.body = "testing testing"
>oEmail.send()
>Set ObjOutlook = nothing
>Set oEmail = nothing
>
>If anyone has any ideas i would appreciate!
>Shevy
I use a free simple DLL to send e-mail using SMTP. See it at
http://www.freevbcode.com/showcode.asp?id=109
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com