Hello @martinjstephens,
Thank you for reaching out to us! I am sorry to hear that you are encountering difficulties while trying to save your Office365 Access Token in FluentSMTP. I understand how frustrating it is to have the settings fail to persist, and I would be happy to help you get this resolved.
To get to the bottom of why the token is not being saved properly, I would like to investigate the server-side behavior during the save process. Often, there might be a silent conflict or a server-side error preventing the data from being written to the database.
Could you please enable the WordPress debug log and try saving the token again? This will allow us to capture any underlying errors that might be occurring during that action.
Here is how you can enable the debug log:
- Access your files: Open your
wp-config.php file, which is located in the root directory of your WordPress installation.
- Locate the debug line: Find the line that says
define('WP_DEBUG', false);.
- Enable debugging: Change that value to
true.
- Add the log directive: Insert
define('WP_DEBUG_LOG', true); on a new line right below it.
Your code should look like this:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
- Save the changes: Once saved, please attempt to save your Office365 Access Token in the FluentSMTP settings once more.
After you have done this, WordPress will record any errors in a file located at /wp-content/debug.log. Please check that file, and if you see any error messages logged there, kindly copy and paste them into your reply.
Note: Please remember to disable debugging (set these values back to false) once we have identified the issue, as this ensures your site remains secure and the log file doesn’t grow unnecessarily.
I look forward to hearing from you so we can get your Office365 integration working smoothly!