When using WordPress

Simply install a plugin called WP Mail SMTP by WPForms

When your SMTP does require authentication

Goto your php.ini file and look for this

mail function. In this section you might see something like

SMTP = localhost

You should change it to something like what is shown below. Make sure you use the same setting like you use in outlook for example for that same domain/account

SMTP = smtp.example.com
smtp_port = 25
username = [email protected]
password = yourmailpassord
sendmail_from = [email protected]

When your SMTP doesn't require authentication

Goto your php.ini file and look for this

mail function. In this section you might see something like

SMTP = localhost

You should change it to something like what is shown below. Make sure you use the same setting like you use in outlook for example for that same domain/account

SMTP = smtp.example.com
smtp_port = 25

WP Feedback

Dive straight into the feedback!
Login below and you can start commenting using your own user instantly

Pin It on Pinterest

Share This
PHP Tricks What to do when PHP mail() function doesn’t work for you