Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD23] Something wrong with protected email sending (1 reply)

$
0
0
I had owerwhelming difficulties trying to send protected email with WD21. Now I have been trying the same with WD23 (with the new "multiplatform" setting "EmailConfigure(emailParameterMode, 1)"), but with equally bad results.

I have no problem sending protected emails with Pegasus email client, but when I try and use the same (or any other) settings in WD, no luck.

With WD I can only send emails using the phone operator's general, unprotected SMTP server using the simpliest syntax:
bSessionOk is boolean = EmailStartSMTPSession(sUser,sServerAddress)

The more complex syntaxes that I would need to use with my ISP's protected server do not work at all, eg.:
bSession is boolean = EmailStartSMTPSession( sUser, sPassword, sServerAddress, iPort, bAsyncMode, emailOptionSecuredTLS)

I have also tried with "optionSSL" and with and without "EmailConfigure(emailParameterMode, 1)"

Timeout has been set to 30. Have tried in Win 7 and XP.

//Code for connection error checking:
IF not bSessionOk THEN
	HourGlass(False)
	DelayBeforeClosing(gClosingDelay)
	Error("Connection to SMTP server failed",EmailMsgError(Email.Error))
	RESULT False
END
//SMTP connection failure messages with different settings:
//---------------------------------
//SSL,30,465,NoMulti,NoAsync:
//Execution in 16-bit mode or attachment names unknown.
//
//TLS,30,465,NoMulti,NoAsync:
//SMTP Session: connection failed. No server response.
//
//SSL,30,465,MultiPlatform,NoAsync:
//Execution in 16-bit mode or attachment names unknown.
//
//TLS,30,465,MultiPlatform,NoAsync:
//SMTP Session: connection failed. No server response.
//
//
//SSL,30,465,NoMulti,Asyncronous sending:
//Just failure, NO MESSAGE!
//
//TLS,30,465,NoMulti,Asyncronous sending:
//Just failure, NO MESSAGE!
//
//SSL,30,465,MultiPlatform,Asyncronous sending:
//Just failure, NO MESSAGE!
//
//TLS,30,465,MultiPlatform,Asyncronous sending:
//Just failure, NO MESSAGE!

//The actual sending is done like this:
bOK is boolean = EmailSendMessage(sUser,emailOptionEncodeHeader)
- but the program gets this far only when sending to an unprotected server, and then it works...

I am losing my gray hair with this. Has anybody been able to send protected emails with WD? I would really appreciate some hints and tips to get over this problem.

Best regards
Ola

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>