?
Solved

CdonTs email within ASP issue

Posted on 2005-04-18
12
Medium Priority
?
372 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:icarainc
  • 6
  • 6
12 Comments
 
LVL 24

Expert Comment

by:David Wilhoit
ID: 13809198
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
 

Author Comment

by:icarainc
ID: 13809268
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
 
LVL 24

Expert Comment

by:David Wilhoit
ID: 13809284
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:icarainc
ID: 13809329
the app and exch are on teh same box.
0
 
LVL 24

Expert Comment

by:David Wilhoit
ID: 13809450
ok, so is the form being filled out by end users, or is it a scripted event?
0
 

Author Comment

by:icarainc
ID: 13809701
its a form being filled out
0
 
LVL 24

Expert Comment

by:David Wilhoit
ID: 13809716
have you tried this to see if it works? unless there's a perms issue, should work easy...
0
 

Author Comment

by:icarainc
ID: 13812455
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
 
LVL 24

Expert Comment

by:David Wilhoit
ID: 13815611
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
 

Author Comment

by:icarainc
ID: 13826525
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
 
LVL 24

Accepted Solution

by:
David Wilhoit earned 500 total points
ID: 13826650
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
 

Author Comment

by:icarainc
ID: 13839060
A bit of searching got me to that point too. Thanks for the help. CDO worked fine after a quick rewrite
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question