• Resolved grafica.villcom

    (@graficavillcom)


    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)
  • Can you kindly ask your host to check the mail queue.

    Thread Starter grafica.villcom

    (@graficavillcom)

    Yesterday I opened a ticket with my host (Aruba) but they can’t understand what the problem is. They told me about trying my script with different e-mails but obviously that is not the problem.

    I think the real problem is that the PHP mail() function is not working on my server. I tested it with some test directly from the host panel.

    Might be the case. Contact your host only.

    Thread Starter grafica.villcom

    (@graficavillcom)

    Thank you.

    In fact my host resolved the problem. For some reasons they made a mistake signing all the emails of my client into spam.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_mail suddenly stopped working’ is closed to new replies.