Send email with PHP Create a Working Contact Form Using PHP

Channel Avatar
Comment
X
Share
Send email with PHP Create a Working Contact Form Using PHP
Send email with PHP Create a Working Contact Form Using PHP
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/1164348fe21a6e7363d28c7b94c9eb3f

Using Gmail’s SMTP server:
https://support.google.com/a/answer/176600?hlen#zippy%2Cuse-the-gmail-smtp-server

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

PHPMailer documentation:
https://github.com/PHPMailer/PHPMailer#documentation

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

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *