If you’re a PHP developer who’s searching for a comprehensive guide that teaches you how to take advantage of the most important features provided by the popular Swift Mailer library, then you’ve come to the right place.
Welcome to the fourth part of a series that introduces you to Swift Mailer. Made up of ten tutorials, this series shows you how to put this powerful PHP 5-based package to work for you quickly, so you can start developing full-featured email applications in a truly painless way.
And now that you know what to expect from this group of articles, it’s time to review the topics that were discussed previously, in case you haven’t read the last article. In that piece, I demonstrated how flexible the Swift Mailer library can be when it comes to sending email messages using different SMTP transports. I coded a couple of scripts that first showed how to perform this process by utilizing the “sendmail” Unix program, and then by means of the “mail()” PHP native function.
Undeniably, having at your disposal a great variety of mailer transports to use speaks for itself about the versatility of Swift Mailer. However, the actual fun begins when exploring its capabilities for manipulating email headers, attachments and multiple message formats.
So, in this part of the series I’m going to discuss how to use the library for dispatching email messages with a carbon copy, or in other words, how to configure Swift Mailer to send a “Cc” MIME header.
As you’ll see in a few moments, this process will be extremely easy to grasp. It will be accomplished through an intuitive API. So let's start learning how to send blind email copies of a message with Swift Mailer right now!