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 504 using verify Method
dspkoester

From: München, Germany
Posts: 13
Member Since: 05/26/05
posted February 5, 2008 5:28 AM

Hello,

I'd like to use the verify method of the smtp control. Usualy verify works fine but a few mailserver return errors.

Example

Empfangen: 220 mx2.hostid.de ESMTP -- No Spam/UBE/UCE

Gesendet: EHLO dsp-koe

Empfangen: 250-mx2.hostid.de
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

Gesendet: MAIL FROM:<Verify@Dart.com> SIZE=95 RET=HDRS
RCPT TO:<norman.wurzer@meusel-beck.de> NOTIFY=NEVER

Empfangen: 250 2.1.0 Ok
504 5.5.2 <dsp-koe>: Helo command rejected: need fully-qualified hostname

Gesendet: RSET
Empfangen: 250 2.0.0 Ok
Gesendet: QUIT
Empfangen: 221 2.0.0 Bye

Dartmail uses the name of the workstation as hostname but the mailserver wants a webaddress, I think. And dartmail returns 4 in this case.

Another mailserver rejects a correct email address that is forwarded.

Now my question. How can I get the error code of the mailserver, so that I can react appropriate? The 5 VerifyMethodConstants are not enough.

Or is there a method available that does nslookup for me, so that I can build my own verify-method?

Thank you
Thomas
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted February 5, 2008 10:29 AM

Hello Thomas,

With regards to the query I would suggest you to create a Trace log of the communication so as to get the error being returned by the server.

You may also use the Command method to verify an email address. For more information on the same I would request you to please refer the Command method article in the help file.

You might also be interested in having a look at the Address Verifier sample provided with the control. The default location for the samples is:
C:\Program Files\PowerTCP\Mail for ActiveX\Samples\Vb6\Smtp\Verifier

Have a great day.

Regards,
Arjun

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

dspkoester

From: München, Germany
Posts: 13
Member Since: 05/26/05
posted February 5, 2008 12:00 PM

Hello,

your "Address Verifier sample" also means that the email address is invalid but it isn't.

I want to use the command method but the question is how to get the address of the mail server. I don't know how to ask the dns server for it.

And there is no other way to get the return code of the mailserver other than the tracelog?

Thomas
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted February 6, 2008 8:44 AM

Hello Thomas,

I would suggest you to use our DNS control which is a part of Winsock toolkit to achieve the desired.
You may download the trial version from the link below:
http://www.dart.com/ptwsk.aspx

Have a great day.

Regards,
Arjun

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

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