As of this week, custom call flow script not sending emails, voicemails and transcriptions are emailing fine.

bgordon

Silver Partner
Joined
Mar 31, 2022
Messages
3
Reaction score
1
Hi all,
We have a custom call flow script that is supposed to send an email to <distribution group> and cc <person> when a call enters the queue.
All has been working fine until 19/06/2026. Since then we have not received any emails from this logic, however we have still received voicemails and transcriptions via email from other parts of the phone system.
Can anyone advise next steps on which logs would be relevant to look for to troubleshoot emailsender module issues?
 
Hello,

What are you using for your outgoing emails? 3CX SMTP, some other provider? If you send a test email to the group or CC emails, are they delivered?
 
Hi
Hello,

What are you using for your outgoing emails? 3CX SMTP, some other provider? If you send a test email to the group or CC emails, are they delivered?
Hi, thanks for your reply. We are using Microsoft 365. Yes the distribution group and cc'd staff member's emails are otherwise working normally.
 
Hi, in the CF Designer you can choose whether to use the systems "default" SMTP service or define one for the script. Perhaps that is something worth checking.

1782459299802.png
 
Also, if you still have issues, you can check for errors in the 3CXCallFlow.log file included in the Support Information package.
 
Also, if you still have issues, you can check for errors in the 3CXCallFlow.log file included in the Support Information package.
Thanks for this, I found the culprit:

Error sending email. Response code: BadRequest, Response: {"Message": "Email body cannot be empty","Success": false}

I have added EmailSender1.BodyHandler = () => { return Convert.ToString("test"); }; to my script and confirm it's now working as intended.

So was there some recent change that forced the emailsender module to require a body because we have never had a body in the emails that we have been sending using this script for years?

Kind Regards,
Brandon
 

Members Online Now

Forum statistics

Threads
111,831
Messages
589,277
Members
164,660
Latest member
RJenkinsROCK