Hello @jodzeee,
To get a better understanding of what might be causing this, let’s enable WordPress debugging. This will create a log file where WordPress records any errors, warnings, or notices, which can provide clues as to why the “To” field isn’t being populated in the FluentSMTP logs for the New Order emails.
Here’s how you can enable debugging:
- Access your?
wp-config.php
?file:?This file is located in the root directory of your WordPress installation. You can access it using an FTP client or the file manager provided by your hosting control panel.
- Enable debugging:?Look for the line?
define('WP_DEBUG', false);
. Change?false
?to?true
. If the line doesn’t exist, add it.
- Enable debug logging:?Add the following line immediately after the?
WP_DEBUG
?line:?define('WP_DEBUG_LOG', true);
Your wp-config.php
file should now contain the following:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
- Save the changes:?Make sure to save the updated?
wp-config.php
?file.
Once debugging is enabled, WordPress will start logging errors to a file named debug.log
located in the wp-content
directory. The typical location of this file would be: /home/USER/public_html/wp-content/debug.log
(replace USER with your actual username).
After enabling debugging, please trigger a new WooCommerce order to generate another New Order email. Then, access the debug.log
file and look for any errors or warnings related to WooCommerce, FluentSMTP, or email sending. Please share the contents of the debug.log
file (or any relevant excerpts) with me, and that will help me to identify the root cause of the problem.
Important: Remember to disable debugging once we’ve resolved the issue. You can do this by changing true
back to false
in the define('WP_DEBUG', true);
line in your wp-config.php
file. Keeping debugging enabled can expose sensitive information and lead to unnecessarily large log files.
Looking forward to hearing back from you with the debug log information!