Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 13th, 2005, 12:31 PM
Tech007 Tech007 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 Tech007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 38 sec
Reputation Power: 0
Webserver not sending mail

After upgraded the webserver os to Win2K3 and upgrading the IIs to IIS6, our webserver is no longer sending emails to the exchange server. The email dyes on the webserver and is placed in Bad Mail on the webserver.

Verifed there are no problems with SMTP and our DNS. Any ideas?

Here is the odd issue. If we login to the web server and use the command prompt to generate an email, it is sent to the exchange server with no problems. If we try and generate the email using the ASP script below, using CDOSYS, the mail goes directly to bad mail, and never leaves the mail server.

Any clues to how to resolve this issue will be greatly appreciated.

Here is a copy of the script being used.



Code:
<%

Dim iConf
Dim Flds
Dim objMessage

If Request.Form("btnSend").Count > 0 Then

   Set objMessage = CreateObject("CDO.Message")
	Set iConf = Server.CreateObject("CDO.Configuration")
	Set Flds = iConf.Fields
    
    iConf.Fields.Item _
   ("http://schemas.microsoft.com/cdo/configuration/sendusing") _
   = 2 'Send the message using the network (SMTP over the network).
   iConf.Fields.Item _
   ("http://schemas.microsoft.com/cdo/configuration/smtpserver") _ 
   ="67.110.5.35"
   iConf.Fields.Item _
   ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _ 
   = 25 
   iConf.Fields.Item _
  ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") _ 
   = False 'Use SSL for the connection (True or False)
  iConf.Fields.Item _
  ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") _ 
   = 60   
   iConf.Fields.Update				
	
	Set objMessage.Configuration = iConf
   objMessage.Subject = Request.Form("subject")
   objMessage.Sender = Request.Form("From")
   objMessage.To = Request.Form("To")
   objMessage.TextBody = Request.Form("message")
   objMessage.Send
   
   Set iConf = Nothing
   Set Flds = Nothing
   Set objMessage = Nothing

End If
%>


BTW - the way my email process currently works is we have a form the user fills out. Then they click submit. At that point the ASP Mailer page is called and the values from the form are passed to it. The webserver then generates the email, and the user is then correctly redirected to another page telling them the email was succefully sent. Unforturnatly, the emai is not being sent. Instead it is going directly to the bad mail folder on the webserver.

Last edited by edwinbrains : July 15th, 2005 at 10:44 AM. Reason: added [code] tags

Reply With Quote
  #2  
Old July 18th, 2005, 06:56 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
If you copied the code from the old server, my guess is there is soomething you need to change in your email code to match the new server, like an IP, or from email address, or something. I don't use cdosys on iis 6 and don't have any specifics for you though.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Webserver not sending mail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT