Support » Fixing WordPress » wp doesn’t send emails

  • antonop4u


    I’m writing a new plugin from which I would like to be able to send service emails to the users.
    I’m working on my computer using WAMP. And I’m not able to send emails, I installed several plugins trying using and other smtp servers, and followed many of the online suggestions, but I’m still not able to send emails.
    The closest I’ve got is when I’ve got this error:

    2019-12-17 09:05:36 Connection: opening to, timeout=300, options=array ()
    2019-12-17 09:05:37 Connection: opened
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    I set on the wp_config.php

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );

    to try to get more info, but I can’t even get the debug.log.

    any suggestion?

    • This topic was modified 1 month ago by antonop4u.
    • This topic was modified 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Kiril Ivanov



    make sure that you are using correct SMTP server and port for the SMTP service that you would like to use.

    Another important part of the SMTP connection is to make sure that the respective port (port 25 in this case) is opened properly for outgoing connections on your local computer.

    You can perform a test if the port is properly open using:

    telnet 25

    If it is not, you should open it to be able to establish a proper connection.

    If this does not help, what information do you receive at your admin e-mail (if any is received).




    I didn’t receive any email because wordpress will not send emails (so far).
    Does Connection: opened means that the computer and the smtp server were able to start the communication?

    Kiril Ivanov


    It should mean so, but it is worth double checking the connectivity. Which SMTP plugin do you use?



    Double checking is always good… 😉 The plugin I’m using now is “wp mail smpt”, but I also tried, “SMTP Mailer”, and it gave me exactly the same error.
    I checked on my server and the server name, user name, and password are correct. In the mail server configuration I checked authorize external app connection…
    Anyway thank for your help Kiril.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.