The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
[SOLVED] Notification code breaks. Full message not sent. - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: [SOLVED] Notification code breaks. Full message not sent. (/showthread.php?tid=4542)



[SOLVED] Notification code breaks. Full message not sent. - fingerprn - Aug 11th, 2014

I couldn't find anyone else with this exact problem, so it may be strangely unique to me. Just in case, I'm posting my solution. FYI, I'm using version 2.2.6.

Problem: You create a custom multipart (HTML/Text) notification and notice the full HTML message is not sent.

Symptoms: After determining it's not a Smarty problem, you make small changes to the code and realize that your changes make a difference, but only in breaking the code in new places. No pattern emerges.

After hours of experiments and pulling your hair out (hopefully you found this post first), you stumble upon the realization that the text version is somehow causing the problem. When you take the text version out, everything gets sent fine. You also test using a built-in example text template, but the problem remains.

Solution 1: You could just remove the text version and only use HTML, but it's less likely your message will get through spam filters. Also, I still run into mobile phones that only accept plain text.

Solution 2 (better): I've identified that this is somehow a mail() problem. When I switched to the Swift Mailer module, everything worked fine.

Hope this helps someone.