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
Nguồn:https://phprealestatescript.com/
Xem Thêm Bài Viết Khác:https://phprealestatescript.com/lap-trinh-php
Well, this is how we get tons of promotional mail. Thank you for making things simple.
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)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
error while sending the message . Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Thank You! This code help fixed my error while use the smtp mailer. coz i never user this before, very helpful
Thanks a lot, your tutorial helped me! 🙂
Thank you! Hi from Ukraine!)
Do you know how to remove all that text that is printed after sending mail ?
How can I hide all the response of the Server? and just say message sent?
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
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"
Thank you! this code help fixed my error all the other tutorials are outdated so this helps me a lot!
great tutorial