5 Configure sendmail on xampp! Use any email account to send mail from Xampp!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys this is unsub and you are watching nerdy and some YouTube channel so welcome to another video on Zen web server course on Windows so in this video we will see how you can configure send mail in PHP on your localhost so I will be using my gmail account for this so you can use any email account like your personal domain by using SMTP settings of your account so let's see how to do this so first go to your same installation path so open your same installation path go to PHP folder and now you have to search for a file PHP dot ini file so I can see PHP so this is PHP application gif and configuration setting so you can see its properties the file extension is dot I n I this is extension so I did this file with any text editor you like so I am using a notepad plus plus and now you can use such feature of your text editor and search for send mail next sorry search for mail function okay search for mail function and may I everyone CTA on so in my file it is all on 0 for two line so here you need to make all these lines comment and then this function so just add semicolon before all the lines so okay okay okay okay so now you need some code to put in this function so you can get the discord from description also so this is about called you can get this call from description also it is just four lines of code copy and go to your PHP ini file in main function malfunction just pass this code so here it is our SMTP settings so SMTP Google I am using Google account so here it is Google SMTP which is smtp.gmail.com and SMTP pod is 587 and send mail from your Gmail ID and your gmail.com so if you are using any personal domain like your domain add calm so you need to get from a cPanel your SMTP studying and just put your SMTP here SMTV port and your email ID here so it will not be different from Gmail I mean the fan and the method is not different from Gmail and here it is send mail path so we have another folder there is send mail so and I have path of that send mail here so it is default you need to you don't need to change this now just ctrl s save your file and close and now again go to your design installation folder and from there you can see send mail folder open this and go to this send mail dot ini file send well configuration settings you can see this it's and well dot ini and just edit with your text editor so what you have to do just comment all these lines under this send mail function so just add a semicolon before all these lines okay or just leave it error file just leave error files and command this also this just this okay comment come on so just save this file and after this you need to put some code here so you just open this code with your tax trader and you can also get this code in description of this video so it's just of seven lines and just copy this code from our copy and put it in your send mail dot ini file just yesterday so here you need to put again this smtp server smtp dot gmail.com i'm using gmail account you can put your personal domain smtp server if you use your personal email account you know SMTP port is 587 error file is error dot log ok so just one comes commend this line also because I have created error files here itself and it is debug files and this is username then this is our password and this is for Center so now what you have to do you have to put your Gmail or your personal ID here put your like email at the head gmail.com so you have to put your email here I am not showing my email just and here your password so now you have to put your account email account password and again put your email account here also ok and also in PHP dot ini file just go to that folder PHP so here also you need to put your gmail ID so I am hiding this phone now because I am putting my ID and my password here so I can show this so just time pause more pausing this video so now I have set it my so now I have configured sign well in my amp also I put it in my gmail ID and account password so now we will check if the sandmen is working or not so open notepad or any text editor you like and after that you need some code some PHP code to check your side malfunction and yeah we need this code you can also get this code from the description of this video so just 10 lines of code just copy this copy and new file so just passed in your new file and now you need to do is the this hair you can enter the subject of your email this will be the subject of your email this is just for test so just put your subject and this is comment so you know you don't need to do anything there and this is your message this is actual message okay and this is again comment and this is receiver email so here you can put your receiver email to whom you are sending and this is our mail function so this is our easy variable this is su be variable this is MSG variable receiver subject and message variable respectively so I am putting an email id here and now I am saving this file so yes and you need to put this file in your htdocs folder so we can assess this from localhost okay I am installation folder and her St Docs and create C as EC ki ki ng C checking Mel and after that after your file name you need to put extension is PHP just don't put dot txt extension because it will create a text file but we need a PHP file so just enter your name so in the chec ki ng ma I L so checking Mel dot PHP so just save it your it in your st docs folder okay now you can close this file so now we will check our Mel so open your Sam control panel and start this Apache web server service ok and now go to your internet browser and type here localhost / your file name so I have my file checking checking mail dot PHP and just hit enter okay now it will take time because it is not on our localhost now it will confirm from Gmail our ID and password and then it will send by email so now our email has been sent and now you can see inbox one so let me see so you can see Mel from nerdy and sub this is subject and this is our email so Mel from the radiance of subject and hide this is an audience up check inside malone them okay so i if you like this video then just give a thumbs up and also share this video with your friends and subscribe my youtube channel and also don't forget to press the bell icon so we'll meet in the next video so bye
Info
Channel: Dev Ansab
Views: 73,627
Rating: undefined out of 5
Keywords: sendmail, sendmail on xampp, mail on xampp, use xampp to send mail, use sendmail on localhost, sendmail on localhost, mail on localhost, how to send mail from localhost, how to send mail from xmapp, xampp tutorial, xamppp, xampp video, xampp course
Id: 9W644cyDyNM
Channel Id: undefined
Length: 10min 53sec (653 seconds)
Published: Fri Jun 15 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.