How can I configure the input and output of an email with SMTP from WP Mail?

Hi, can I send emails from WP using smtp? I have free hosting. Thanks for your valuable attention.

Hi and welcome to the forum! You can send email using SMTP on free hosting, and that’s the only way because the mail() function doesn’t work. Just install a plugin that allows you to configure SMTP details (like WP Mail SMTP), enable it and then, if you use Gmail’s SMTP, make sure you enable 2FA and generate an app-specific password on your Google account before you configure it. If you use other SMTP servers, you might need to experiment with some options before it works.

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.