Swift Mailer's Batchsend Method and Other Features (Page 1 of 4 )
Frankly speaking, building a full-featured email application with PHP has always been a challenging task, even for seasoned developers. The process often demands that developers deal directly with the internals of both the SMTP and POP3 protocols, and it's worse if the application must provide support for IMAP servers.
Of course, there’s no need to reinvent the wheel (or become a mixture of virtual postman and programmer) every time you need to create email programs in PHP. There are many well-trusted libraries available on the web that will do the job for you very efficiently.
One of the most powerful email packages that allows you to send email in a truly straightforward fashion is Swift Mailer, which you can download freely at http://swiftmailer.org. In case you haven’t had the chance to give it a try, this PHP 5-based package will let you send MIME email in all sorts of clever ways, through a cohesive and cleverly designed API that uses a strict object-oriented approach.
Naturally, if you've already read all of the previous articles of the series, then you probably have a solid background in using the most relevant features packaged with Swift Mailer, ranging from working with different SMTP transports and sending email messages in HTML, to using inline attachments.
Nevertheless, there are a few characteristics of the library that deserve a closer look. These include the proper usage of its “batchSend()” method, and its ability to manipulate MIME headers in a truly simple manner.
Ready to tackle this last chapter of the series? Then start reading right now!