Re: Error Sending TLS SMTP email to servers that are not GMail
Topwiz <[email protected]>
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
I discovered I should send STARTTLS after EHLO and get this response: 220 2.0.0 SMTP server ready But the the cryptlib session activate gives the same error. Topwiz wrote: > > My program is written in PowerBuilder and uses the latest copy of cl32.dll > to send email. It works perfectly with GMail but when used with other > servers that require TLS it fails. PowerBuilder is very similar to VB6 in > how it calls .dll functions so I went by the example for that. > > The error is returned from the call to activate the session. The error is > -32 "Bad/unrecognised data format". > > Here is the code, minus the error handling: > > ll_RetVal = cryptInit() > ll_RetVal = cryptCreateSession(ll_Session, CRYPT_UNUSED, > CRYPT_SESSION_SSL) > ll_RetVal = cryptSetAttributeString(ll_Session, > CRYPT_SESSINFO_SERVER_NAME, ls_server, Len(ls_server)) > ll_RetVal = cryptSetAttribute(ll_Session, CRYPT_SESSINFO_SERVER_PORT, > lui_port) > ll_RetVal = cryptSetAttribute(ll_Session, CRYPT_SESSINFO_ACTIVE, 1) > > The variables that start with ll_ are Long, ls_ are String and lui_ are > UnsignedInteger. Long is a signed 4 byte number and UnsignedInteger is a > unsigned 2 byte number. > > Thanks in advance, > Roland > -- View this message in context: http://old.nabble.com/Error-Sending-TLS-SMTP-email-to-servers-that-are-not-GMail-tp33230840p33256731.html Sent from the Cryptlib mailing list archive at Nabble.com. _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.