Posts tagged "php"

seSwiftMailerPlugin released

Posted by benni on 2009-01-28 in mail, php, plugins, symfony

After a while of developing plugins for internal use I finally got around to releasing one to the public. I have a few in stash that might be ready to be released in the future, so stay tuned.

This plugin helps speed up sending of mails from symfony. It should be compatible with all versions(1.0,1.1,1.2).I extended the swift library, which is an extremely powerful tool to sending mails in php, but for my taste not easy enough to use you have to deal with different classes and lots of configuration options, not necessarily a bad thing but for sending mails fast it can be done easier. My intention was not to wrap all of swifts features, but rather port those most useful for me at the moment. Nevertheless can it be easily extended, just take a look at the class files in the lib folder. You can use normal symfony templates as body, photos are automatically detected and attached to the message, mailing lists attachments are also supported.

Here are some examples of its usage:

We will use gmail as it is the most easy to set up, feel free to try out the other connection methods: