How to Send Mail From Localhost in WordPress | Localhost Email Tutorial | SMTP Mail with Gmail

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video we are going to learn how you can send emails from your WordPress localhost so this is our site you can see that we have an e-commerce website we used woocommerce to build it and we're using the bloxy theme we also have a lot of products over here and we also have a contact page let's click on contact page and down here you can see that there's a form over here with the first name last name email address phone number subject line and a message so we are going to also check if our form is working and we're also going to check when we purchase a product if that product information or purchase confirmation email is sent properly okay so for now let's go back to our WordPress dashboard and let's start this tutorial okay so first we are going to install our plugin okay so hover your mouse over plugins and click on add new and from here we are simply going to type SMTP over here and you can see there are various options the wp mail SMTP by WP forms which is the most popular SMTP plugin there's the post SMTP there's the fluent SMTP and then there's easy WP SMTP okay so you can use any of these if you want but make sure it's compatible with your version of Wordpress okay so we are going to be using the um easy WP SMTP by send layer okay so it has over 600 000 active installations and it's compatible with our version of Wordpress so we're going to Simply click on this install now button and wait for the plugin to install okay it's installed now let's click on activate okay so our plugin has been activated so it also has a setup process which you can click on this button to get started but we are going to be setting it up manually so let's click over here that says go back to dashboard okay so we're here in the settings so SMTP easy WPS MTP is over here and there's the settings so how can you set up your SMTP so there's a documentation over here okay so here's the documentation for easy wpsmtp um here you can see that they're um showing you how easy it is to set up simply go to uh settings from here select other SMTP mailer if you prefer other SMTP Miller such as Amazon mail gun or Microsoft Outlook send send in blue SMTP Etc you can select those but we will be using the other SMTP so after you select that you have to put in your hostname type of encryption SMTP Port um then the SMTP authentication username and password Etc so I'll show you how all these are done but the important thing that we are going to be needing are this information okay so we're going to be setting up our SMTP for Gmail or Google workspace so let's go back to our WordPress dashboard okay so from here we are simply going to scroll down and select the other SMTP from here if we scroll down we need the SMTP host so for Google the SMTP host is let's go to the documentation the SMTP host is this one so let's copy it now let's go back to our WordPress dashboard and paste it over here and for type of encryption we are going to be selecting the SSL and you can see as we selected the SSL we already got our SMTP Port which is 465. so if we go back to the documentation you can see that it already tells us the port number is either 587 or 465 if you're using the SSL encryption okay so let's get back to our WordPress dashboard okay so the auto TLS is on the SMTP authentication so we need our username and password okay so for username we can use our email address so for SMTP password we actually need to set it up while we're on the subject I'll also show you how you can set up your two-factor authentication for your Google Okay so let's go to our email address so this is our email address and from here I'm going to click on this profile icon over here and then click on manage your Google accounts okay so from here we are going to select the security Tab and we are going to scroll down over here and here you can see the two step verification so our two-step verification is already turned on so we can click on over here and you must actually put in your password to log into your security panel okay so we have logged into our two-step verification security panel so if your two-step verification is turned off you can simply turn it on from here and follow these steps enter your uh device number where through where you're going to get your two-step verification code the process is really simple so after that simply scroll down and from here you can see there's an option called app passwords okay so we are going to click on this Arrow over here and you can see that it tells us to select an app and select a device so from here we're going to click on this drop down and select mail and from the select device we are going to select our Windows computer okay then we are going to click on this generate button okay so let's wait and here it is here's the password okay so we are going to copy this password and then we're going to click on done okay so let's get back to our WordPress dashboard and from here we are going to paste in our password okay so that's done so let's scroll down now and here it says the from email address and the name of the site should be my shop and there's the advanced settings we can see reply to email address BCC so we do not need to go through all these okay so let's deactivate this and let's click on save settings okay so our settings uh were successfully saved now let's test if our email is working or not so let's go to send a test over here and now from here we are going to send an email to one of our accounts okay so this is the email address where we are going to send our email So currently the HTML is selected if you want you can also send a custom email so let's go ahead and select a custom email all right so let's turn it on let's scroll down so from here let's select a subject and let's type in a message okay so our subject is test email and our message is this is a test email from your localhost WordPress website okay so let's click on this uh send test email button okay so the test plain text email was sent successfully now let's really find out if the email was delivered or not all right so let's log into our email and you can see that we already have the WordPress test email over here so if we click on it you can see that test mail this is a test email from your localhost WordPress website so it's working perfectly so let's go back to our WordPress dashboard so basically that is how you can use easy wpsmtp to send emails from your Local Host okay so everything is working perfectly for other options for example the export if you want to export the email logs you need to upgrade to the pro version of easy WPS MTP okay but if you simply need to test if the email function in your WordPress website is working or not you can use this free version to do so okay so let's actually go to our website and check if our forms are working or not okay let's go to our contact form okay so from here we have a form built with WP forms so we're going to Simply put in our first name last name email address phone number subject and message and click on the send button okay so let me fill these out quickly okay so I've filled in all the details and now we're going to click on the send message button to send our email okay now it says thanks for contacting us we will be in touch with you shortly so now let's go to our email address and see if the message was sent successfully or not so we're here in our email address now let's check our inbox as you can see we have received the email over here now let's click on it and we can see over here as you can see it says John Doe and the email address is over here and the single line text we actually haven't properly customized our form that's why it says single line text instead of phone number and the subject is over here comment or message it says hello from WP shop so it's working perfectly okay so now let's get back to our WordPress dashboard now we can say for certain that our form is working okay so let's go back to our home page and now let's try to purchase a product and see if our purchase confirmation email is being sent okay so let's scroll down and let's select this black shirt over here okay so we want to purchase this shirt we are going to choose a size and we are going to choose only one okay so I'm going to click on add to cart and now I'm going to click on view card okay so our shirt has been added so now let's click on proceed to checkout okay so here's our product details and I actually have put in the details earlier so it's using cookies to fill out this form so first name John Doe company name nothing country street address town State California ZIP code phone number so our information has been set up now we're going to click on place order and check that our purchase confirmation email is being sent okay so let's click on the place order button okay so it says thank you your order has been received and here's the details over here so let's go back to our email address and see if everything is working and you can see our uh email is working perfectly over here you can see the new order has arrived you have received the following order from John Doe and this is here and the billing address is over here congratulations on the sale so our woocommerce email is also working perfectly okay so let's get back to our dashboard okay so let's go to our WordPress dashboard now so everything is working perfectly so that is how you can basically send emails from your WordPress localhost now before finishing this video um you might be wondering why you want to send emails from your WordPress localhost so let me just quickly explain so if you're creating a WordPress website you need to check the various functions and if they're working properly right so the contact form purchase orders Etc so you need to check if the email functionality is working properly or not so we have already tested so everything is working perfectly okay so that does it for today's video I hope this video was helpful for you guys if it was give it a like share this video and of course subscribe to this channel to get more helpful videos on WordPress okay so till the next video see ya take care bye
Info
Channel: WPGIZ
Views: 2,753
Rating: undefined out of 5
Keywords: wordpress localhost email, localhost wordpress mail, send email from wordpress localhost, send mail from localhost wordpress, wordpress localhost email tutorial
Id: Asi15Z4kYPw
Channel Id: undefined
Length: 11min 37sec (697 seconds)
Published: Thu Jul 06 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.