• Resolved lordsnake

    (@lordsnake)


    I have installed wpmail SMTP on a site that was previously using sendgrid.

    While the sendgrid plugin was still installed, wpmail smtp was able to work and was sending the test emails.

    So I uninstalled sendgrid.

    Now wpmail smtp won’t work, I just get a timeout error from wordpress when I try to send a test email.
    This is what I get in the debug event

    Type
    Error
    Date
    8th April 2022 at 5:35 pm
    Content
    Mailer: Other SMTP
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Source
    WP Mail SMTP
    /home/callan/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php (line: 314)
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @lordsnake,

    Thanks for reaching out! SendGrid is an API based integration, but you’re trying to configure the WP Mail SMTP plugin with the Other SMTP mailer option which is an SMTP-based connection.

    The SMTP error indicates that your web server isn’t able to connect to the SMTP server probably because of a firewall, ModSecurity rules etc. When you get a chance, could you please contact your web hosting support and ask them to look into the issue. You can provide them the SMTP settings you’re using and the error log you shared. They should be able to figure out the issue.

    Alternatively and we recommend setting up other available mailers instead of using “Other SMTP”. We have documentation on setting up each of our available mailers.

    Thanks!

    Thread Starter lordsnake

    (@lordsnake)

    I have to use the OTHER SMTP option because none of the others apply.
    I assume that if I tried to smtp.com when it snot smtp.com that I am using then it would be problematic.

    I have solved the issue by using a different port, but it would obviously be better if the plugin actually failed gracefully and gave a useful error, rather than waiting until WordPress or PHP throws a timeout error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘timeout trying to send test email’ is closed to new replies.