Join David Powers for an in-depth discussion in this video Installing Swift Mailer from GitHub, part of PHP Email with Swift Mailer.
- View Offline
- The source files for Swift Mailer…are hosted on GitHub,…so if you don't want to use Composer…and Git is installed on your system,…the quick and easy way to install Swift Mailer…is to clone the repository.…If you don't have Git installed,…you can download the files directly.…I'll show you where to get them later.…First, let's use Git to clone them.…I've already installed Swift Mailer…on my Windows system using Composer.…So I've switched to my Mac,…which has Git installed.…You need to run Git from the command line,…so I'm going to launch Terminal…from Applications, Utilities.…
Once in the terminal,…we need to change directory because…the swiftmailer class definitions need to be stored…in a location where they can be accessed…by your php application.…For the purposes of this course,…I'm going to be working in a directory…called php email inside my testing server route.…So cd and then the location,…in my case, it's Applications/…MAMP/htdocs/…phpemail.…
And of course, you will need to change that…to match your own location.…
Swift Mailer is free and feature-rich, and it integrates into any web app written in PHP 5 or 7. Swift Mailer offers a flexible and elegant object-oriented approach to sending emails, including HTML email and bulk email. This PHP tutorial guides developers through the process of installing and loading Swift Mailer, and sending emails using SMTP and encrypted SMTP connections. David Powers teaches secure methods that protect users and support MIME standards. He also introduces advanced techniques for sending attachments, personalizing email, and limiting the send rate. Want to see how Swift Mailer solves a real-world programming challenge? Chapter 6 is a case study that shows how to use Swift Mailer to send an email registration form.
- What is Swift Mailer?
- Installing Swift Mailer
- Preparing basic email
- Sending email via SMTP
- Handing off emails to mail transport agents
- Sending attachments
- Sending HTML email
- Personalizing bulk mail
- Limiting the rate of sending emails