Learn how to use PHP to programmatically send email, including HTML email and personalized bulk email, with Swift Mailer, the free PHP library.
Overview
Syllabus
Introduction
- Welcome
- What you should know before watching this course
- Using the exercise files
- What is Swift Mailer?
- Installing Swift Mailer with Composer
- Installing Swift Mailer from GitHub
- Loading Swift Mailer
- Preparing a basic email
- Choosing a transport to send the email
- Sending the email by SMTP
- Using an encrypted SMTP connection
- Handing the email to the server's mail transport agent
- Using Swift Mailer with the PHP mail() function
- Using an aggregate transport
- Adding a Reply-To header
- Copying a message to other reciipients
- Setting additional headers
- Attaching a local file
- Attaching a dynamically generated file
- HTML email basics
- Embedding images in HTML email
- Sending individually addressed emails
- Personalizing bulk mail
- Using a custom class to personalize mail
- Limiting the rate of sending emails
- Using a logger plugin for debugging
- Introducing the case study
- Checking required fields
- Building the message body
- Uploading and attaching a file
- Sending the email
- Goodbye
Taught by
David Powers