• Resolved Carsten Lund

    (@carsten-lund)


    Hi there, my site suddenly stopped sending emails over SMTP. I have made no changes to the settings and there are no issues detected in my mailserver.

    Line 389 in PHPMailer/SMTP.php is mentioned but since there haven’t been any changes to that file, I can’t see what should be wrong here.
    Any idea what is going on?

    Regards
    Carsten

    Debug Event Details:

    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to serve

    Error log:

    
    
    Versions:
    WordPress: 6.2
    WordPress MS: No
    PHP: 8.0.28
    WP Mail SMTP: 3.7.0
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server
    Host: mail.domain
    Port: 465
    SMTPSecure: ssl
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: OpenSSL 1.1.1f  31 Mar 2020
    
    Debug:
    Email Source: WP Mail SMTP
    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server
    
    SMTP Debug:
    
    2023-04-04 14:57:37 Connection: opening to ssl://mail.domain:465, timeout=300, options=array()
    
    2023-04-04 14:57:37 Connection failed. Error #2: stream_socket_client(): Peer certificate CN=domain' did not match expected CN=mail.domain' [/var/www/vhosts/domain/httpdocs/wp-includes/PHPMailer/SMTP.php line 389]
    
    2023-04-04 14:57:37 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/var/www/vhosts/domain/httpdocs/wp-includes/PHPMailer/SMTP.php line 389]
    
    2023-04-04 14:57:37 Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://mail.domain:465 (Unknown error) [/var/www/vhosts/domain/httpdocs/wp-includes/PHPMailer/SMTP.php line 389]
    
    2023-04-04 14:57:37 SMTP ERROR: Failed to connect to server:  (0)
    
    SMTP Error: Could not connect to SMTP host. Failed to connect to server
    
    
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Dake

    (@dakeg)

    Hi @carsten-lund

    Thanks for reaching out.

    That certainly is strange. Based on the error message, we would recommend reaching out to your SMTP host to confirm if there are any issues occurring from their end (be sure to send the full error log).

    Next, to confirm if this is a server-specific issue, please try connecting to a different SMTP server using one of the other connections mentioned in our Other SMTP documentation.

    If the issue persists, please try setting up a different mailer for testing purposes.

    The easiest mailers to set up for testing purposes(outside of the Other SMTP mailer) are the Google (free) and Sendinblue (free tier) mailers.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi there, thanks for your reply.

    I have connected to Google and sendinblue, and both are working fine, so it must be a server-specific issue as you wrote.

    Regards
    Carsten

    Plugin Support Dake

    (@dakeg)

    Hi @carsten-lund

    Thanks for confirming.

    Since this is the case, will you proceed with using either the Google or Sendinblue mailers instead of your previous connection? I just wanted to confirm if you had any other questions.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi @dakeg, thanks for asking.

    For now I will use sendinblue. Since I don’t want my gmail to be my send from email, I have tried to follow the instructions to create an alias mail.

    As I understand, this can then be configured to be the send from email address?

    I have followed the instructions to create an alias, but the Google Console looks different than the documentation so I have not succeed yet.

    Plugin Support Dake

    (@dakeg)

    Hi @carsten-lund

    Thanks for confirming.

    Correct, you should be able to create an alias. May we have a screenshot of the differences you are seeing in the Google console? Please be sure to hide any personal information.

    I ask because I am not seeing differences on my end.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi there, maybe I’m mistaken, but should this alias not be created in my Google Cloud Console? In your documentation it looks like the alias is created in the Google browser, but how can that be, that the alias is created in my personal browser?

    Regards
    Carsten

    Plugin Support Dake

    (@dakeg)

    Hi @carsten-lund

    Thank you for getting back to us and I apologise for the confusion.

    I misunderstood what you meant by Google Console.

    Here are the official instructions as well as a blog post that covers setting up an alias via Gmail and Google Workspace respectively:

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘SMTP suddenly stopped sending emails’ is closed to new replies.