Page 1 of 1

Win CC control sendMail() SSL error

Posted: Thu Jul 14, 2022 2:49 pm
by ja_ma_
Hello,

I am trying to send an Email with Control, trough the following function: https://www.winccoa.com/documentation/W ... dMail.html

But I get the following Error:

WCCOAui (1), 2022.07.14 14:42:16.799, PARAM,SEVERE, 54, Unexpected state, Jul 14 14:42:16 md2krt8c sendEmail.exe[21664]: ERROR => TLS setup failed: SSL connect attempt failed with unknown errorerror:00000000:lib(0):func(0):reason(0)

How exactly do I make the SSL connection?

Thanks a lot

Re: Win CC control sendMail() SSL error

Posted: Sun Jul 17, 2022 8:22 pm
by funkey
Hello,

I use this : https://github.com/zehm/sendEmail
for years now without problems. Works like a charm.

I call it like this:

Code: Select all

system("perl " + getPath(BIN_REL_PATH) + "sendEmail.pl -f "+ server + "@test.com -t " + sAdressen + "-s smtp.service.test.com -o tls=no -o message-charset=utf-8 -u \"Test Email "+ server + "\" -m \"This is a Test-Email from WinCC-OA-Server "+server+"\" &");
Best regards


Edit: Ok, I see now you need SSL. I don't use it, emails are used internal only.

Re: Win CC control sendMail() SSL error

Posted: Sat Dec 10, 2022 1:26 pm
by dgi
What patch are you using, I think you might consider an update? They fixed their sendmail executable (which is based on the sendMail perl script) to support newer SSL/TLS versions. (we had the same problem).