Send Email from localhost with PHP using PHPMailer and Gmail SMTP server

preview_player
Показать описание
In this video we are going to create a contact form, and we will
using PHPMailer and Gmail's mail server to send emails from
our localhost server.

Download PHPMailer from Github:

Create an Google App Password:

You can buy me a coffee and get the whole source code in a zip file.

Read the article, on my website:
Рекомендации по теме
Комментарии
Автор

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!

peggo-channel
Автор

Literally worked first try, thank you!

Yem
Автор

NO TENGO PALABRAS PARA DESCRIBIR LO QUE ME AYUDO TU VIDEO, MUCHISIMAS

matiasluhmann
Автор

Nice video, i sure it can help me get a better grade for my project

edwinng
Автор

TOOOOP, great!!! You are incredible!!! You save me. 🤣🤣🤣

miltonoliveira
Автор

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?

andasfs
Автор

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 ??

mk
Автор

Thanks for the info. One question, why there is no Html file, does the index.php replaces it? Thank you!

intelpix
Автор

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.

DigitalAdamTech
Автор

Thank you so very much sir. Please, may I ask, did you make any settings changes in your php.ini file?

NedumEze
Автор

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?

benjaminmanalastasix
Автор

Why is mine error shows

You must provide at least one recipient email address

Rudy-RickEstacio
Автор

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!!!

roastedChickn
Автор

This is like 10th video that does not work. Is there working contact form in 2024 or do i need to use wordpress ? thanks

NemaIme-ozhs
Автор

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?

ianrobson
Автор

It supports localhost by xampp server ??

SaiRam-mopu
Автор

SMTP Error: Could not authenticate. how to fix it?

moimoikimoimoiki
Автор

It's not working on live server..using GoDaddy hosting... please help

niitpatole