niels Posted March 22, 2013 Share Posted March 22, 2013 When trying to use the Preview button in Mass Mail it shows me a syntax error, even if the mail is empty. Syntax Error - Please check your email message for invalid template syntax or missing closing tags If I ignore the error and send the Mass Mail anyway, it claims to be sending all the e-mails but it really isn't. E-mail sent from other parts of the system (tickets, automated e-mail, etc.) works fine. This includes customized e-mails. templates_c is world writable. The frustrating part is that non of the logs show any error (or any activity) related to mass mail whatsoever. I'm assuming the syntax error is the root cause. Does anyone have an idea what could be causing this? Is there anything that mass mail does differently from all the other mail functions? 0 Quote Link to comment Share on other sites More sharing options...
niels Posted March 22, 2013 Author Share Posted March 22, 2013 UPDATE: Using strace I noticed that WHMCS inserts the Mass Mail Template without specifying a language. This causes the language to be NULL. It then later tries to retrieve the Mass Mail Template using lang=''. Of course for MySQL '' is not the same as NULL, so it fails to retrieve the template. 0 Quote Link to comment Share on other sites More sharing options...
niels Posted March 22, 2013 Author Share Posted March 22, 2013 UPDATE: Managed to fix it by changing the MySQL schema and forcing language to default to "none" (for tblemailtemplates) rather than NULL. 0 Quote Link to comment Share on other sites More sharing options...
kevinpez Posted October 28, 2013 Share Posted October 28, 2013 UPDATE: Managed to fix it by changing the MySQL schema and forcing language to default to "none" (for tblemailtemplates) rather than NULL. This is my exact issue but I'm not sure were you changed this information, could you provide a little more detail 0 Quote Link to comment Share on other sites More sharing options...
Yeu Posted November 15, 2013 Share Posted November 15, 2013 I got the same issue. It is not irrelevant for "tblemailtemplates". You just need to leave the language column blank for all clients at "tblclients". After that, you can preview the mail without error. - - - Updated - - - I got the same issue. It not irrelevant for "tblemailtemplates". You just need to leave the language column blank for all clients at "tblclients". After that, you can preview the mail without error. - - - Updated - - - I got the same issue. It is irrelevant for "tblemailtemplates". You just need to leave the language column blank for all clients at "tblclients". After that, you can preview the mail without error. 0 Quote Link to comment Share on other sites More sharing options...
mira99 Posted December 15, 2013 Share Posted December 15, 2013 not working massmail all e-mail system send fine, clients mass mail edit message and not send all clients. any idea? whmcs 5.2.14 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.