Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP file not successfully sending emails, SMTP problem

Status
Not open for further replies.

cherisc

ISP
Dec 9, 2004
71
US
We are running a Windows 2000 Server with IIS 5.1. One of our customers has a web page that uses .asp to send email. However, the emails don't get sent. There are no emails in the badmail folder or in the queue.

We have been working on this problem for three days. We have used the following tools: telnet, portqry, and smtpdiag. SMTPDIAG and PORTQRY find that port 25 on the server is listening and DNS is OK. However, when I try to telnet in to the server, I don't get a 220 message. I don't get any message. The command prompt screen goes blank for a few minutes and then returns to the command prompt.

We have Tiny Personal Firewall version 5 running and all modules are currently disabled while we are trying to figure this out.

I do not have a background in .asp. Our customer's web developer is who is working on the .asp part of the web. I am working on the technical server part of the web. I am a network technician, however, I do not have a ton of experience with IIS SMTP issues.

The asp test code that we are trying to run on the server is as follows:

<%
on error resume next
Dim objEmail
set objEmail = server.CreateObject("CDONTS.NewMail")
with objEmail
'.To = "test1@test1.com;test2@test2.com;test3@test3.com"
.To = "test4@test4.net"
.From = "test2@test2.com"
.Importance = 1
.Subject = "Customer Web Site Order"
'.Body = '<HTML><BODY>Name: ' & Request('Name') & '<BR> Stripe 2 Color:' & Request('s2Color') & '<br><br></body></html>'
.Body = strHTML
.BodyFormat = 0
.MailFormat = 0
.Send
end with
set objEmail = nothing
if err.number <> 0 then
response.write (err.number & ": " & err.description)
end if
%>

When trying to open this page via the web, we get the following error:
Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

On the server is the following warning recorded in the event log:
Type: Warning
Source W3SVC
Category: None
Event ID: 36
Description: The server failed to load application". The error was 'The specified metadata was not found.'

Also, and I don't know if this is related, on the IIS server, if I try to do a Check Server Extensions or something related to server extensions, I get the following error:
Microsoft Server Extensions:
The server administration programs and the server extensions on the web server are not compatible. The administration program is too old to use with this server.

Originally we had 2000 extensions, and I think we might have upgraded them to 2002 extensions.

It seems that we have two different issues, and I believe that the SMTP problem is what is stopping the asp page from sending the email.

Any help would be kindly awarded with a star...
 
Are you perhaps relaying the email from the IIS SMTP server to an MS Exchange box? If so you need to set the "smart host" and make sure the "from" line contains a valid Exchange account.
 
I had this issue fixed and working. The web in IIS didn't have Scripts only checked.

So it was working for a while, then we realized that we had to turn off smtp relay. There were no changes made to the server.

Now, all of the sudden, when you try to access a test .asp page from any of the web sites, a 404 error is returned to the browser.

If anyone has any ideas, I can post more information.

Thank you
 
If you can view HTML but not ASP then check the application execute permissions in the IIS Admin tool.
 
On this server, we host 52 domains. Last week, I tested .asp files on three of them and they were working. Today, none of the sites work. Only one of those customers relies on a .asp page to receive email. They use the script that is posted above. I have a test page with the following script:

<%@ LANGUAGE="VBSCRIPT" %>
<!--- You should get --->
<!--- current system date and time --->

<HTML>
<HEAD>
<TITLE>ASP Test Page</TITLE>
</HEAD>

<BODY>
Today's date and time is <%=Now()%>.
</BODY>
</HTML>


I put it into three webs and tried to open We are getting the following generic error returned in the web browser:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the home page, and then look for links to the information you want.
Click the Back button to try another link.
HTTP 404 - File not found
Internet Information Services


--------------------------------------------------------------------------------

Technical Information (for support personnel)

More information:
Microsoft Support

I checked the settings on the properties page of the customer's web site that I need to get working, and here are those:
Properties/Home Directory/Application Settings: Execute Permissions: Scripts Only.

This is the same for our other webs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top