Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Beside Myself

I keep getting sporadic "Transport can not connect to the server." messages when users send email through my server via classic asp web pages.  Please note that it does NOT happen all the time but often enough that we are frustrated.  We have increased our RAM and hard drive space but it is still happening.

Final note:  it did not appear to happen until my server host made a change to the email server that was being used for this process.  Can someone, anyone, please brainstorm any possible reasons why a SPORADIC problem like this might be happening.  It happens with bulk sends as well as individual emails.
SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Schneider

ASKER

Here is my code:
%>
<!--#include file = "../../includes/cdo_connect.asp" -->
<%
	
			Set cdoMessage = CreateObject("CDO.Message")
			With cdoMessage
				Set .Configuration = cdoConfig
				.To = sPartEmail
				.From = Session("coach_email")
				.Subject = "Welcome to eTRaXC&reg; from Coach " & Session("coach_last")
				.TextBody = sMsg
				.Send
			End With
			Set cdoMessage = Nothing
			Set cdoConfig = Nothing

Open in new window


and here is the include:
<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
    .Item(cdoSendUsingMethod) = cdoSendUsingPort
    .Item(cdoSMTPServer) = "mail.bhi.com"
'    .Item(cdoSMTPServer) = "smtp.gmail.com"
    .Item(cdoSMTPAuthenticate) = 1
'    .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl")=true 
    .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    .Item(cdoSendUsername) = "xxx@blackhole.com"
    .Item(cdoSendPassword) = "xxx"
    .Update
End With
%>

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I appreciate the addressing of the sporadic nature of this but sometimes it is a single email by a single user that does not go through.  padas, I will look at your solutions of course but I am wondering why the things you are suggesting would contribute to the sporadic nature of this issue.

Again,  this began happening in January after a change was made by my web host...not sure what they changed and they insist that nothing they did could have caused this but it was fine before and it is not now.  I have been unable to glean anything from the Failed Request Logs.

In fact I think there WAS a limit issue that they resolved that seemed to help but it is still happening occasionally, and more than I can accept.

I appreciate the continued effort to help me on this.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah padas I was kind of avoiding that major of a change but I may have to go there.  The gmail was commented out simply because I don't use it any more but wanted reference what I had tried.  The security patch is a logical suggestion but, again, the sporadic nature even with individual email sends is still puzzling.

Can you send me your code so I can modify mine?  I am not sure what you mean by "local".

I am going to try that first and then look into moving to a third party.  I will also implement your authentication suggestion:

 item.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What do you mean "on the same machine"?  The web server is in one physical location, but it does contain the smtp service.  Is that what you mean?  Obviously the site users are at other physical locations.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You folks are all incredibly helpful!  I will try to implement these suggestions and then, if that does not work, I will look into a third party solution.
Incredibly good discussion.