Link to home
Start Free TrialLog in
Avatar of icarainc
icarainc

asked on

CdonTs email within ASP issue

I am running exchange 2003 as part of SBS. I need to know how to setup smtp so that i can issue an email within an ASP page.
Avatar of David Wilhoit
David Wilhoit
Flag of United States of America image

If the email app is simply sending, just allow the IP address of the sending server to send to you. I think you may have something more complex, but I need details...
Avatar of icarainc
icarainc

ASKER

i have an asp page that is a form that is being filled out. I have the data being stored into an access database. i also want it to send an email alert to data manager that someone has filled out the form. pretty simple...i just dont know how to do it exch 2k3. in exchh 5.5 you installed smtp
IF the app is physically on the Exchange server, shouldn't be a big deal, SMTP is already there. If it's separate, then you'd want SMTP on the app server, and in Exchange you would allow the app server's IP address to relay mail on the SMTP virtual server settings.

D
the app and exch are on teh same box.
ok, so is the form being filled out by end users, or is it a scripted event?
its a form being filled out
have you tried this to see if it works? unless there's a perms issue, should work easy...
The issue is the asp page was built to use the smtp service that was built into IIS for WIn2K. using the mailroot folder built into the inetpub folder of IIS. Or more simple put, the form was developed and tested on a Win2k (without exchange) server that had the smtp service enabled in IIS. The form worked fine and the email was sent. The app was then moved to the Win2K3 SBS server ewhere it will be hosted. Once moved the form no longer sent the email. How do you point the form to use the smtp via exchange as opposed to the IIS version of SMTP?
It's the same version; Exchange just hooks into it. Look in the \exchsrvr folder for the VS1 instance for the SMTP virtual server, it should work then.

D
The actual error is

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/NewContact.asp, line 172

800401f3

This is the error received in the browser. This is the line 172 in the asp page

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

So the failure is at the point where its tring to create the mail object. This is before the asp even tries to send the mail. Again this app was built and tested good on a Win2K server (just using the SMTP bult into IIS) and was deployed on a Win2k3 SBS server w/exchange. Were it failed


ASKER CERTIFIED SOLUTION
Avatar of David Wilhoit
David Wilhoit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A bit of searching got me to that point too. Thanks for the help. CDO worked fine after a quick rewrite