Send email with PHP | Create a Working Contact Form Using PHP
Dave Hollingworth Dave Hollingworth
24.4K subscribers
128,977 views
0

 Published On Aug 12, 2022

Please consider supporting my channel:
☕ https://ko-fi.com/davehollingworth

Learn how to send an email using PHP.

Recommended hosting:
https://davehollingworth.net/hosting

Full PHP course:
➤ https://davehollingworth.net/phpy

In this video you'll learn how to:
• create a contact form in HTML, including client-side validation
• install and configure the PHPMailer package
• send email using PHPMailer
• debug problems when sending the email
• use the post / redirect / get pattern

Code shown in the video:
➤ https://gist.github.com/daveh/1164348...

Using Gmail's SMTP server:
➤ https://support.google.com/a/answer/1...

PHPMailer:
➤ https://github.com/PHPMailer/PHPMailer

PHPMailer documentation:
➤ https://github.com/PHPMailer/PHPMaile...

CSS:
➤ https://watercss.kognise.dev/

00:00 Introduction
00:19 Create contact form
01:32 Style the form
02:06 Create PHP script
02:52 Get SMTP server
03:37 Sending email from PHP
04:01 Install PHPMailer
04:12 Use PHPMailer
06:57 Debugging
08:31 POST / redirect / GET
09:50 Summary

#PHP #PHPMailer #SMTP #email

show more

Share/Embed