How To Send Mail From Localhost XAMPP Using Gmail in Hindi

How To Send Mail From Localhost XAMPP Using Gmail in Hindi

Send Mail From Localhost XAMPP Using Gmail: Today i’ll discuss about how to send mail using php through smtp. Its very useful to every developer now days because every developer must create a website on local server then live. Please read carefully every step How To Send Mail From Localhost XAMPP Using Gmail in Hindi, Send Mail From Localhost XAMPP Using Gmail in Hindi, Send Mail From Localhost XAMPP Using Gmail SMTP, How to send email from localhost in php, Send Mail From Localhost XAMPP Using Gmail.

You’ll have face hassle sending e-mail out of your localhost server XAMPP, WAMP, LAMP. As a result of While you setup apache in native system it gained’t by default setup for SMTP server . So if you wish to ship e-mail out of your localhost you need to must setup SMTP configuration in your file or it’s a must to use exterior SMTP server.

There are lot’s of exterior SMTP server can be found like Gmail, Hotmail, Yahoo and so on. They help you ship e-mail by utilizing their SMTP configuration, you solely have to configure some parameter in your native configuration or in your phpmailer code. Create Multilingual Website in HTML

Configure XAMPP to send mail from localhost in Hindi

Following these Steps what you required for it:

  • You have Gmail account. (With Less secure apps on)
    1. you need to change account access for less secure apps By doing following steps.
      1. Login to your google account.
      2. Go to the Less secure apps settings page https://www.google.com/settings/security/lesssecureapps
      3. From Access for less secure apps section, select Turn on.
  • XAMPP activate in Your computer/laptop
  • Swift Mailer Library. if it not Please download here.

 

How to Configure XAMPP to send mail from localhost

Next Go to your Xampp – Htdocs folder and open your directory now create a page index.php and paste the following code.

 

Send Mail using Gmail with PHP in XAMPP

In Next Step you create new Page sendmail.php because we use in form-action.

Here is your file look like these:

How To Send Mail From Localhost XAMPP Using Gmail in Hindi

 

Send Mail From Localhost XAMPP Using Gmail in Hindi

Now Check Your Email your Query successfully received. If you are live these site so in your company mail only change smtp details and username, password thats it..

Any doubts on the topic? Please mention them in the Comments section below and I’d be glad to help you out.

Read More Article Like: How to Create Blog on Blogger, Download Youtube Videos 

Now your email will be sent successfully. Have a good day and please share your story in the comment box.

One thought on “How To Send Mail From Localhost XAMPP Using Gmail in Hindi”

Leave a Reply

Your email address will not be published. Required fields are marked *