Community

Question: sendMail() broken in 3.20.10?

18.01.2026 10:56 by Pablo Chamorro

Hello all,
I updated a project from 3.20.4 to 3.20.10, and I checked that the sendMail() function is not sending mails anymore. Debugging the ret variable '0' is returned so, the call is working fine (using the email dynstring option). Trying with the mapping one, the function always returns the severe "Secure Email does not contain the 4 required fields", which have no sense for me.

Someone else notices this? Maybe i'm missunderstanding something?

Below the both options of sendMail I tried:
dyn_string dsEmail = makeDynString("me@me.com", mailFrom, "My Subject", "body");
sendMail(servSMTP, dsEmail, ret, userSMTP, passwdSMTP, encriptTLS, "");



mapping mEmail = makeMapping("subject" , "My Subject",
"from" , mailFrom,
"to" , "me@me.com",
"body" , "body",
"attachment", "",
"username" , userSMTP,
"password" , passwdSMTP,
"tls" , encriptTLS);
sendMail(servSMTP, mEmail, ret);

Responses (1)

11.05.2026 12:59 by Knipp, Leopold (DI FA HMI SW ETM PS CC)

Within newer patches for WinCC OA 3.20 than 3.20 P010 changes have been made in the sendMail() function.
Please do an upgrade to the newest patch and check if it works.

Best Regards
Leopold Knipp
Senior Support Specialist

Log in to write a response to this question.
Back to list