About Swift Mailer
WireMail module providing Swift Mailer integration
Modules that have a unique purpose not covered by existing categories.
Close to stable, but users are advised to be cautious and test thoroughly.*
|Compatibility||2.4, 2.5, 2.6, 2.7|
|Date Added||March 2, 2014|
|Last Updated||January 19, 2015|
This module's files should be placed in /site/modules/WireMailSwiftMailer/
How to install or uninstall modules
Copyright (c) 2013-2014 Teppo Koivula
This module extends WireMail base class, integrating the Swift Mailer mailinglibrary into ProcessWire.
In order to use WireMailSwiftMailer, you'll just have to install the module anduse ProcessWire's wireMail() function. For extensive instructions on that, take a look at /wire/core/Functions.php.
Though Swift Mailer supports Mail Transport, i.e. using PHP's mail(), that's notalways sensible option. Real value of Swift Mailer is in it's Sendmail and SMTP Transports.
If you're a Gmail user and only need to send a few mails now and then, followingDigitalOcean article is helpful for getting started with Gmail's SMTP server: https://www.digitalocean.com/community/articles/how-to-use-google-s-smtp-server
Basic usage is very close to how one would use PHP's native mail() function, butthe order of arguments is slightly different:
$number_of_recipients = wireMail($to, $from, $subject, $body);
Like PHP's mail(), wireMail() also returns the number of recipients accepted fordelivery. Note that this is not necessarily the number of recipients actuallyreceiving your message, just the number of addresses it was sent to.
While this module should be fully functional, at least regarding the features itcurrently includes, it's also very rough, doesn't handle more complex things and definitely isn't intended for serious production use yet.
Another important thing to note is that as of this writing, WireMail is still afeature of ProcessWire's dev brach.
Swift Mailer is a powerful component based mailing library for PHP. If you wantto learn more about Swift Mailer and the things it can achieve you should visit http://swiftmailer.org/.
Swift Mailer is copyright Fabien Potencier and released under the MIT license.
This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(See included LICENSE file for full license text.)
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.