Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Mail Configuration
 CDOSYS / IIS7 / WIN 2008 server - transport error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cathys
Starting Member

USA
2 Posts

Posted - 28 July 2011 :  14:51:01  Show Profile  Reply with Quote
I am trying to set up email configuration with CDOSYS, with a remote SMTP server. My webserver is windows server 2008 64 bit,
the version of IIS is 7.5.7600.16385.

My first question is: if sending mail with CDOSYS to a remote smtp server, do I still need the local smtp service running? For security reasons my company does not want the local smtp service running on the web server that the forum is installed on

My second question is: I'm not sure how to get past the transport error I am getting when CDO attempts to send the mail. Networking has assured me this should not be a firewall issue. (and yes smtp for the remote server is listening on port 25). There are other .NET programs running on the same webserver I have the forum installed on that send emails successfully using .NET, with the same configuration (port, ip address etc) as I am using with the forum.

Any ideas on what I might check on? (I have tried this with the local smtp service both running and not running, I have tried with various combinations of security (0 - no authentication, 1 clear text with my email and password, and 2), and still the transport error. I've also been fiddling with IIS settings and still the transport error.

Thanks in advance for any help I can get on this. If I can't get email to work I have to abandon this and find another solution.

on the web server this is my email configuration:
email component: CDOSYS (IIS5/5.1/6) - this is the only component available in the dropdown.
email mode: on
email server address 99.9.9.99 (the ip address of the remote smtp server)
require unique email: on
email validation: on
filter: off
restrict registration: off
require logon for sending email: on
number of posts: 0

I have put the following debug statements in inc_mail.asp to
try to figure out why mail is not getting sent:


case "cdosys"

Set iConf = Server.CreateObject ("CDO.Configuration")
Set Flds = iConf.Fields

Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 '2 - remote smtp server, 1 local smtp server
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer 'from email configuration
Flds("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
Flds("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0 'no authentication required, 1 is clear text, 2 is current process
Flds.Update

Set objNewMail = Server.CreateObject("CDO.Message")
Set objNewMail.Configuration = iConf

'Format and send message
Err.Clear

objNewMail.To = strRecipients
objNewMail.From = strSender
objNewMail.Subject = strSubject
objNewMail.TextBody = strMessage

On Error Resume Next
objNewMail.Send
If Err <> 0 Then
Response.Write "There was an error in send..."
Response.Write "Error Number" & Err.Number & "<br>"
Response.Write "Error Description" & Err.Description & "<br>"
Response.Write "Source" & Err.Source & "<br>"
Response.Write "strMailServer: " & strMailServer & "<br>"

Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
else
Response.Write "Your mail has been sent..."
end if



This is the error I get :

There was an error in send...Error Number-2147220973
Error DescriptionThe transport failed to connect to the server.
SourceCDO.Message.1
strMailServer: 99.9.9.99 (where this is the ip address of the remote smtp server)


This is what I get from the IIS log:

2011-07-25 13:28:06 99.1.1.99 GET /KBForum/pop_mail.asp id=3 80 - 99.1.1.99 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+Trident/4.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30618;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET+CLR+1.1.4322) 200 0 0 281

2011-07-25 13:28:08 99.1.1.99 POST /KBForum/pop_mail.asp mode=DoIt&id=3 80 - 99.1.1.99 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+Trident/4.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30618;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET+CLR+1.1.4322) 200 0 0 468

Edited by - AnonJr on 28 July 2011 14:54:34

cathys
Starting Member

USA
2 Posts

Posted - 28 July 2011 :  14:52:16  Show Profile  Reply with Quote
I have verified that I can ping the smtp server on port 25
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 28 July 2011 :  14:58:26  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Are you sure there's no username/password or some other authentication required to send mail on the server?

There should have been two commented out lines that you could un-comment to send authentication info:
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 28 July 2011 :  15:02:52  Show Profile  Visit HuwR's Homepage  Reply with Quote
the ability to ping an adress and the ability to connect to it are not necesarily related.

The error normally indicates a problem with the server config, may be a permissions problem, you may need to turn smtpauthentication on and supply a username/password

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 10 August 2011 :  09:11:37  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Try this using Telnet (you may have to install it) or you could use Putty.

1. telnet mail.yourdomain.com 25
2. Say hello to the mail server by typing HELO

Post any error messages here.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

bhatia
Starting Member

USA
14 Posts

Posted - 20 March 2012 :  13:21:58  Show Profile  Reply with Quote
I am facing exactly the same problem and unable to resolve it.

I have migrated our forum setup from Windows 2003 to Windows 2008/64 bits OS and could not get the email to work.

Where do I start?

Thanks for help.

Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 22 March 2012 :  06:32:47  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Do you have a mail server installed and working?

Which email component are you using?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

bhatia
Starting Member

USA
14 Posts

Posted - 26 March 2012 :  10:50:43  Show Profile  Reply with Quote
quote:
Originally posted by Podge

Do you have a mail server installed and working?

Which email component are you using?


This is corporate email server. Obviously, it works. It was working earlier on this forum running on Windows 2003 and stopped working when I moved to Windows 2008 server.

There is only one selection available in the forum configuration. CDOSYS (IIS 5/5.1.1/6).

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 26 March 2012 :  11:17:31  Show Profile  Visit HuwR's Homepage  Reply with Quote
have you installed the smtp service for IIS ?

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

bhatia
Starting Member

USA
14 Posts

Posted - 02 April 2012 :  16:52:22  Show Profile  Reply with Quote
quote:
Originally posted by HuwR

have you installed the smtp service for IIS ?



Do I really need it?
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 02 April 2012 :  17:02:00  Show Profile  Visit HuwR's Homepage  Reply with Quote
yes, CDOSYS requires it in order to send mail

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

bhatia
Starting Member

USA
14 Posts

Posted - 05 April 2012 :  15:37:05  Show Profile  Reply with Quote
I have installed smtp server. It still doesn't work. What am I missing?
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 06 April 2012 :  02:56:40  Show Profile  Visit HuwR's Homepage  Reply with Quote
did you configure Snitz to use localhost for the mailserver ?
also the smtp service should have a log file and will also have some folders where it drops the mail into prior to sending, using the log/looking in these folders should help to track down the problem.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 06 April 2012 :  03:20:09  Show Profile  Visit HuwR's Homepage  Reply with Quote
check out this thread here http://forums.iis.net/t/1164349.aspx

could be permission related.
some kind of error would also help to narrow down the problem, try looking in the windows error logs

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

bhatia
Starting Member

USA
14 Posts

Posted - 09 April 2012 :  10:40:41  Show Profile  Reply with Quote
That's it. The problem was resolved after fixing the permissions. Thanks.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 09 April 2012 :  11:19:05  Show Profile  Visit HuwR's Homepage  Reply with Quote
glad you got it sorted.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07