after literally days or researching and frustration, finally one tutorial that actually works on Mac and Xampp, and Gmail using this SMTP method. Thank you so much!
hi just want to let you know I still can't get it right even after I followed all the steps :( google setting doe not have the less secure settings alr
After submitting the form the email goes to the email address that the end-user enters in the form, not my gmail address. I double-checked everything and I didn't notice anything out of the ordinary. Please advise, thanks.
Hey, set in the setAddress method the email address where the email goes. $mail->addAddress(youremail). Also change the send from method to the email that the user types in the form. $mail->setFrom(Users-email);
Hey check for any typo in the lines of code where you include the namespaces in the script.php file. Check out the code on my website: digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail
great tutorial! do you use xampp to run it on locahost? because, i have a problem, when i press submit to send the email, it loads infinitely and i don't get a success or fail message, any ideas what the issue could be?
I am sorry that you are struggling with this matter, but i am 100% sure that the code is working. Copy and paste the code from my website: digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail Let me know if you get it to work .
I'm so thankful to you!!! If you have a donation link, just link it below I just wanna express my gratitude. thank you thankyouuuu. U earned a subscribe!!!
Wow, thank you. You can buy me a coffee through my website if you feel like it. digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail
Firstly thank you for such a great video. I downloaded the source code from your page a I could not get it to work properly when I entered the code myself it kept on telling me email sent successfully when i opened the page. Now the page will not open and i notice that the code for the index.php is not the same as you have on the video. It does not have the validation test only the submit. Have I done something wrong?
Hey, i am glad you liked the video. I checked the code on the website, it's all there. I think that you didn't copied the whole index file which includes the email form. There are two code snippets to copy. Visit the article again and go carefully through the code. You will see what you have missed.
I actually purchased the download and copied it across and those were the files I was referring to. The index file i was talking about has the fields automatically filled in. Also a quick question with the google 16 digit code do we remove the spaces between the sets of 4 letters or leave them in? Thanks for all your help
I got the email to send but the index file that I am refering to is the file I downloaded from patreon it did not have the if empty test at the top of the index file as in the video just the submit test and it always displays "email send successfully" and if the email field is empty it crashes as to be expected.
@@ianrobson9612 You are right, i just checked the source code. I also got a test mail on my Gmail digitalfox account, i think it's from you. I will reply to that email sending you the updated source code in a zip file. Tell me if you get it.
@@DigitalFox-tutorials could you please create a booking calendar for us, please.i have tried and managed to create the calendar but when a person chooses the date and the time something is going wrong 😞.
It should work. Download the source code from my website, in case that you have something misspelled. digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail
after literally days or researching and frustration, finally one tutorial that actually works on Mac and Xampp, and Gmail using this SMTP method. Thank you so much!
Glad it helped!
Yeah, for me the same! There are lots of tutorials - none of them worked. But this one did! I'm really glad, thank you!
NO TENGO PALABRAS PARA DESCRIBIR LO QUE ME AYUDO TU VIDEO, MUCHISIMAS GRACIASSSSSSSSSSSSSSSSSSSSS
Thank you, glad to help
I see a lot of tutorials that show us how to send emails from the same adress, but how to do this with 2 adresses ??
You can create an array which will hold all the email addresses and use a loop , to execute the code multiple times.
you are a great person, you solved a big problems I faced with a very smart, simple and organized way. thank you so much
Glad it helped! Thank you.
Got an error from index.php that I can't call the sendEmail function? I put require to link my script.php but still error. Where did I go wrong?
Check your code again, 90% of all errors are misspelled words.
hi just want to let you know I still can't get it right even after I followed all the steps :( google setting doe not have the less secure settings alr
After submitting the form the email goes to the email address that the end-user enters in the form, not my gmail address. I double-checked everything and I didn't notice anything out of the ordinary. Please advise, thanks.
Hey, set in the setAddress method the email address where the email goes. $mail->addAddress(youremail).
Also change the send from method to the email that the user types in the form. $mail->setFrom(Users-email);
Literally worked first try, thank you!
Great to hear!
got problem with exception file because it couldn't be found even thought it was existed. can you tell me how to solve that ?
Hey check for any typo in the lines of code where you include the namespaces in the script.php file.
Check out the code on my website: digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail
i have tried the same process yesterday i got success msg but today i am getting SMTP server error i dont know why
Thanks for the info. One question, why there is no Html file, does the index.php replaces it? Thank you!
It's basically the same. When we include PHP in our home page, we give it a .php extension (index.php). If not we name the file (index.html).
great tutorial! do you use xampp to run it on locahost? because, i have a problem, when i press submit to send the email, it loads infinitely and i don't get a success or fail message, any ideas what the issue could be?
nevermindi i found the problem, i typed the port number wrong, thanks again, i really appreciated this tutorial!
This is like 10th video that does not work. Is there working contact form in 2024 or do i need to use wordpress ? thanks
I am sorry that you are struggling with this matter, but i am 100% sure that the code is working.
Copy and paste the code from my website:
digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail
Let me know if you get it to work .
Nice video, i sure it can help me get a better grade for my project
Glad to hear that!
Hello, thanks for the tutorial. I use app password but it's not working. It was working before, suddenly stopped. Is it xoauth2 related?
Hey, I am not sure but check your Gmail settings. Make sure that you have two step verification enabled.
It's already enabled. I've found out that xoauth2 setting is needed. There's no other way. I'm trying to implement it to my project.
Good tutorial - Well explained! 👍
Many thanks!
TOOOOP, great!!! You are incredible!!! You save me. 🤣🤣🤣
Happy to help!
SMTP Error: Could not authenticate. how to fix it?
Check your login details.
@@DigitalFox-tutorials thanks already fix but email after receipt I see at my mail (To and From) also same email
I'm so thankful to you!!! If you have a donation link, just link it below I just wanna express my gratitude. thank you thankyouuuu. U earned a subscribe!!!
Wow, thank you. You can buy me a coffee through my website if you feel like it.
digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail
Firstly thank you for such a great video. I downloaded the source code from your page a I could not get it to work properly when I entered the code myself it kept on telling me email sent successfully when i opened the page. Now the page will not open and i notice that the code for the index.php is not the same as you have on the video. It does not have the validation test only the submit. Have I done something wrong?
Hey, i am glad you liked the video. I checked the code on the website, it's all there. I think that you didn't copied the whole index file which includes the email form. There are two code snippets to copy.
Visit the article again and go carefully through the code. You will see what you have missed.
I actually purchased the download and copied it across and those were the files I was referring to. The index file i was talking about has the fields automatically filled in. Also a quick question with the google 16 digit code do we remove the spaces between the sets of 4 letters or leave them in? Thanks for all your help
Hey thanks Ian. No spaces between the characters.
I got the email to send but the index file that I am refering to is the file I downloaded from patreon it did not have the if empty test at the top of the index file as in the video just the submit test and it always displays "email send successfully" and if the email field is empty it crashes as to be expected.
@@ianrobson9612 You are right, i just checked the source code. I also got a test mail on my Gmail digitalfox account, i think it's from you. I will reply to that email sending you the updated source code in a zip file. Tell me if you get it.
It supports localhost by xampp server ??
Yes, the code runs in any kind of a local server.
what if I use localhost?
Yes you can use your localhost server.
Wow i am excited that you explained everything in detail and simply.thank you❤
Thank you, i am glad you liked it.
@@DigitalFox-tutorials could you please create a booking calendar for us, please.i have tried and managed to create the calendar but when a person chooses the date and the time something is going wrong 😞.
@user-sr9nh3lc2x . I never coded one. It's a good tutorial idea. I will try.
Thank you so very much sir. Please, may I ask, did you make any settings changes in your php.ini file?
You don't have to make any changes.
@@DigitalFox-tutorials
Thanks a million, Sir.
You areeeeee awessssssoooooooommmmmeeeee!
Thank you
Very thank you sir ❤❤❤🎉🎉🎉🎉😊
Most welcome
It's not working on live server..using GoDaddy hosting... please help
It should work. Download the source code from my website, in case that you have something misspelled.
digitalfox-tutorials.com/tutorial.php?title=Send-Email-in-PHP-using-PHPMailer-and-Gmail
@@DigitalFox-tutorials it's working on localhost but not working on GoDaddy hosting
Same problem here. Did you have any luck at any point? @@niitpatole7744
Thank you man
Super BRO !!!
Thanks 🔥
Help sir
With what?
Miller Lisa Allen Helen Moore Sarah
You are such a LIVESAVER🫡
Glad it helped
Why is mine error shows
You must provide at least one recipient email address