Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Error from AOL mail server
dfb0211
kdn@eriss.com

From: san diego, CA USA
Posts: 9
Member Since: 01/17/03
posted August 4, 2003 2:18 PM

I have the following code in my app:

FrmSMTP.Smtp1.Timeout = 20000
FrmSMTP.Smtp1.Message.Text = cText
FrmSMTP.Smtp1.Message.From "Salaries@USWorks.com"
FrmSMTP.Smtp1.Message.To.Add vEmail
FrmSMTP.Smtp1.Message.Subject = "New Salary updates"
FrmSMTP.Smtp1.Message.Header.Add msgContentType, "text/html"
FrmSMTP.Smtp1.Login "10.0.0.45"
FrmSMTP.Smtp1.Send
FrmSMTP.Smtp1.Message.Header.Clear
FrmSMTP.Smtp1.Message.To.Clear
FrmSMTP.Smtp1.Logout

When sending mail to AOL accounts, I get an error reply:

"5.5.2 Send Hello First"

How do I fix this?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 4, 2003 2:26 PM

When you say "you get a reply", do you mean that that is the response from the server while doing the Send? Or do you mean that later on you get a message from AOL in the mail?

dfb0211
kdn@eriss.com

From: san diego, CA USA
Posts: 9
Member Since: 01/17/03
posted August 4, 2003 3:02 PM

that is the response from the server when sending
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 4, 2003 3:17 PM

Are you sure? 10.0.0.45 is not one of aol's servers and I am not able to ping it. Can you please provide me with the IP of a server that has the problem so that I can test something?

dfb0211
kdn@eriss.com

From: san diego, CA USA
Posts: 9
Member Since: 01/17/03
posted August 4, 2003 5:43 PM

No the 10.0.0.45 is our internal mail server. The "5.5.2 Send Hello First" is the reply from the AOL server that I can see in the smtp1.progress reply variable.

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 4, 2003 8:08 PM

If you are connecting to your internal mail server then the message is queued up on the internal mail server which later connects to AOL and sends the message, so any data you see in the progress event would be that sent between our control and your server.

From the number of hits I got from searching for "5.5.2 Send Hello First" on google, I would guess that your server is Exchange. The problem comes when a server does not support ESMTP, but does not inform the client. Normally we send "EHLO yourmachinename" and the server is either supposed to accept it or reject it. If it accepts it, we use ESMTP commands. If it rejects it we send "HELO yourmachinename"

Some servers incorrectly accept the EHLO command. Then the client (us) starts sending normal commands which causes the error you are reporting.

This problem has to be fixed on the server but you try to work around it by using the Command method to send the hello and then try sending again:

Dim Reply As String
Smtp1.Command "HELO yourmachinename", Reply


Here is a link to the Google search I referred:

http://groups.google.com/groups?q=%225.5.2+Send+Hello+First%22&ie=UTF-8&oe=UTF-8&hl=en

dfb0211
kdn@eriss.com

From: san diego, CA USA
Posts: 9
Member Since: 01/17/03
posted August 5, 2003 8:24 PM

That seemed to have done the trick.

BTW, how do I prevent the error window from coming up when there is a protocol error? For example, if you try the following email address in your smtp client demo app: "test.@.aol.com" - a debug window comes up with the 11001 protocal error and I cannot figure out how to contniue the app withpout resetting the whole thing.
dfb0211
kdn@eriss.com

From: san diego, CA USA
Posts: 9
Member Since: 01/17/03
posted August 5, 2003 8:32 PM

Let me be a bit more succinct: I do not seem to be able to trap protocol errors, even with "on error goto" statements or errorhandler for the smtp control itself. Since I am processing a long list of emails out of a database, it constantly needs manual attention.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 5, 2003 9:07 PM

I just downloaded the latest mailtool and ran the VB6 Smtp Client using "test.@.aol.com" and did not experience any problems. Please tell me the settings I need to use for the remaing textboxes in order to see the problem.

Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX