wp_mail suddenly stopped working
-
Hi, I need some help…
I’m running wordpress with woocommerce and suddenly two days ago all the emails from WordPress stopped working. No new order emails, no new user emails, nothing!
Nothing changed on my site: no plugins or core updates.So I run this script for testing wp_mail function:
<?php /** * Update variable settings. * Load to your WP root folder. */ // Set $to as the email you want to send the test to $to = "my email address here"; // No need to make changes below this line // Email subject and body text $subject = 'wp_mail function test'; $message = 'This is a test of the wp_mail function: wp_mail is working'; $headers = ''; // Load WP components, no themes define('WP_USE_THEMES', false); require('wp-load.php'); // Call the wp_mail function, display message based on the result. if( wp_mail( $to, $subject, $message, $headers ) ) { // the message was sent... echo 'The test message was sent. Check your email inbox.'; } else { // the message was not sent... echo 'The message was not sent!'; }; ?>
The report is successful but I did not receive the email.
Of course I tested all the plugins and default theme and nothing changed.
How is it possible? Can you help me?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_mail suddenly stopped working’ is closed to new replies.