Join David Powers for an in-depth discussion in this video Using an encrypted SMTP connection, part of PHP Email with Swift Mailer.
- View Offline
- [Voiceover] To send email using an encrypted connection…you need to have the necessary…open SSL transport wrappers enabled on your web server.…You can check whether they're enabled…by opening this file,…check underscore SSL dot PHP,…which you can find in the Chapter Two, zero two,…underscore zero four folder…of the exercise files.…It contains a short script that will display…a complete list of socket transports on your webserver.…So just load it into a browser…and here's a list of the socket transports.…
The two that you need to look for…are SSL and TLS.…If SSL and TLS are listed,…you can use an encrypted connection with Swift Mailer.…If they're not listed, you'll need…to use an unencrypted connection,…as described in the previous video.…Alternatively, ask your hosting company…or server administrator to enable open SSL in PHP.…Now, I'm assuming SSL and TLS are listed…so let's get back to my editing program.…
and switch to this file,…encrypted dot php.…which you can also find in the…chapter two, zero two underscore four folder…
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