Send Emails via SMTP with Gmail and PHPMailer

preview_player
Показать описание
In this video, we will learn how to send emails via SMTP with Gmail and PHPMailer.

PHPMailer is a code library to send (transport) emails safely and easily via PHP code from a web server.

Using PHPMailer, we can easy send three types of email:
- plain text email
- HTML email
- email with attachments

Hosting I use:

Buy Me a Coffee ;)
Рекомендации по теме
Комментарии
Автор

Thank you! this code help fixed my error all the other tutorials are outdated so this helps me a lot!

albert
Автор

Thank You! This code help fixed my error while use the smtp mailer. coz i never user this before, very helpful

edmundcreeps
Автор

Thanks a lot, your tutorial helped me! :)

TruManUtdFan
Автор

Curious if you can create 2 separate mailer instances from the same form entry data? Looking to send part of the data in one email, the rest in a different email completely.

TheChewyWun
Автор

thanks alot i worked and my time was saved <3
BRAVOOO

abdullahrafi
Автор

Can add toggle button for hiding and showing html table within mail body using phpmailer???

Or any another way

yaseenimuhammadraja
Автор

Well, this is how we get tons of promotional mail. Thank you for making things simple.

tapaljor
Автор

its showing connection error should we have to configure our web host for sending external smtp server

ashishkumarmishra
Автор

On local email send successfully but once i uploaded code on server geeting an error need your help
SMTP ERROR: Failed to connect to server: Network is unreachable (101)

UmairKhan-yihu
Автор

Hi, nice video, but I have one question, I follow the same step if I got an corporative email ? Is provided by gsuite thanks inadcanve

javierr
Автор

Could you make another video with Google's OAUTH version? because they limited we need to use oauth version otherwise we can't use it anymore

bearchubjp
Автор

Hi. i followed everything as you said but i get this error below. How can i solve it because i am using a live server


2019-08-1710:16:48 SMTP ERROR: Failed to connect to server: Network is unreachable (101)

dijiflex
Автор

I'm doing things as you but it's just not working...
It's loading like forever and than says: "SMTP ERROR: Failed to connect to server"

naminee
Автор

How can I hide all the response of the Server? and just say message sent?

KappaVendetta
Автор

Do you know how to remove all that text that is printed after sending mail ?

blackut
Автор

2020-03-10 11:27:48 SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)

gowrishankarsankaran