WordPress not sending emails

[ad_1]

I am running WordPress 6.3.1 and PHP version 7.4.13. I didn’t receive the email for a new site being setup, and when new users get registered. I tried sending an email using wp\_mail, but it didn’t go through. I got the following error:

mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

I do have the SMTP set to our mailserver in the php.ini, so not sure what is going on. I do have some older sites running PHP 5.2 with the same settings, and those send mail fine.

Any help or suggestions are appreciated.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer