Home arrow PHP arrow Swift Mailer's Batchsend Method and Other Features

Swift Mailer's Batchsend Method and Other Features

Welcome to the final part of a ten-part series that shows you how to use the Swift Mailer library to build email applications. This final part of the series will explain how to use the batchsend() method, and how to specify the Return-path MIME header within emails.

TABLE OF CONTENTS:
  1. Swift Mailer's Batchsend Method and Other Features
  2. Review the setDisposition() and embed() methods
  3. The batchSend() method
  4. The setReturnPath() method
By: Alejandro Gervasio
Rating: starstarstarstarstar / 2
March 01, 2010

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

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!



 
 
>>> More PHP Articles          >>> More By Alejandro Gervasio
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap

Dev Shed Tutorial Topics: