• 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 smtp.gmail.com 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 smtp.mywebsite.com:25, 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 4 years, 11 months ago by antonop4u.
    • This topic was modified 4 years, 11 months 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)
  • Hello,

    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 smtp.mywebsite.com 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).

    Regards,
    Kiril

    Thread Starter antonop4u

    (@antonop4u)

    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?

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

    Thread Starter antonop4u

    (@antonop4u)

    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)
  • The topic ‘wp doesn’t send emails’ is closed to new replies.