Win CC control sendMail() SSL error

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
3 posts • Page 1 of 1
ja_ma_
Posts: 10
Joined: Thu Jun 09, 2022 3:56 pm

Win CC control sendMail() SSL error

Post 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

funkey
Posts: 85
Joined: Mon Dec 27, 2010 1:11 pm

Re: Win CC control sendMail() SSL error

Post 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.

User avatar
dgi
Posts: 11
Joined: Wed May 09, 2018 4:28 pm

Re: Win CC control sendMail() SSL error

Post 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).

Post Reply
3 posts • Page 1 of 1