Are you facing some problem such as password reset, or can’t receive notification from wordpress through mail. Well you’re not alone. There is same kind of restriction on PHP mail(). In this post I am share you how to troubleshoot those problem and fix it.
Test that your website can send mail
First at all you need to understand the problem what is going on. You need to test that your wordpress website can send email. To do this, logout from your self hosted wordpress website and click forget password. Or visit WP login page and click forget password. Then enter your email address or your username and click get new password. That’s all if you are a register user you will definitely receive a mail from WordPress for resetting password. If not please check your username or mail otherwise your wordpress cannot send PHP mails. Note sometime this test is not 100% true. In that case take some expert advice.
Well if your wordpress can send mail then you did not need to follow this tutorial. But setting up SMTP is very useful for most condition. If wordpress cannot send email then you need to setup SMTP mail sending.
Setup SMTP for wordpress
Setup SMTP for wordpress is very easy. you just need to install a plugin activate it and change settings. That’s all and you are all done. So let’s get started.
First at all find a plugin for SMTP on wordpress official repositories. And select a popular and compatible one otherwise it’s may be buggy even can be security problem. Know more about SMTP.
There’s so much plugin available but I preferred for Easy WP SMTP. You can use your favourite one. Now install and activate you your plugin.
In this tutorial I am focused on Gmail setup. Outhers SMTP setting is discussed on another post. To setup Gmail you need ready with your Gmail password. First login to your Google account and enable less secure apps. Now you need to add your email on Gmail. In most cases it’s email@example.com. Then go to plugin setting and click SMTP setting. Give from email address. This is show on from address and this should be same email address you add on your Gmail account. Then enter name which is shown on email. Don’t force for from name replacement.
Then come to SMTP host and enter smtp address. For gmail it’s
smtp.gmail.com. Then select type of encryption, it’s should be TLS. For TLS port should be
587. Select SMTP authentication YES. Then enter your gmail address and password. And click save changes. That’s all. You’re successfully setup SMTP service. Now test your email. And remember, don’t turn off less secure apps on Google. And don’t change your google password, if you need to change, you have to reconfigure plugin setting with your new password.
Hope you like this tutorial. If you have any questions or suggestions leave comment below. I am happy to listen you. And consider subscribing.