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.
icaraincAsked:
Who is Participating?
 
David WilhoitSenior Consultant, ExchangeCommented:
ahhh, you need to use Use CDOSYS/CDOEX on Windows 200x instead of CDONTS. CDONTS is discontinued on 2003, and Exchange uses CDOEX

D
0
 
David WilhoitSenior Consultant, ExchangeCommented:
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...
0
 
icaraincAuthor Commented:
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
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
David WilhoitSenior Consultant, ExchangeCommented:
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
0
 
icaraincAuthor Commented:
the app and exch are on teh same box.
0
 
David WilhoitSenior Consultant, ExchangeCommented:
ok, so is the form being filled out by end users, or is it a scripted event?
0
 
icaraincAuthor Commented:
its a form being filled out
0
 
David WilhoitSenior Consultant, ExchangeCommented:
have you tried this to see if it works? unless there's a perms issue, should work easy...
0
 
icaraincAuthor Commented:
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?
0
 
David WilhoitSenior Consultant, ExchangeCommented:
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
0
 
icaraincAuthor Commented:
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


0
 
icaraincAuthor Commented:
A bit of searching got me to that point too. Thanks for the help. CDO worked fine after a quick rewrite
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.