After checking the error logs, I found using TNG inside WordPress created email errors because TNG and WordPress use the same phpmailer program for SMTP emails. WordPress loads the php and SMTP mail programs from the WordPress folder. Then when TNG tries to send an email, it attempts to load the same email functions from different files in the TNG folder which causes the error. I have not determined why everything worked previously and then suddenly stopped.
WordPress updates automatically so instead of changing WordPress, I created a mod that lets TNG use the WordPress phpmailer files. To use this mod SMTP authentication must enabled in TNG: Setup >> Configuration >> General Settings >> Site Design and Definition.
Keep in mind this mod may not work with all TNG/WordPress configurations. If the mod does not resolve the email problem, first uninstall then delete the mod.
9/23/18
This mod changes which phpmailer files are used by tngmaillib.php as shown in the code lines below:
ORIGINAL TNG CODE:
Code: Select all
require_once("class.phpmailer.php");
require_once("class.smtp.php");
Code: Select all
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class-phpmailer.php' );
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class-smtp.php' );