 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPMaster.com: Sending Email with Swift Mailer
by Chris Cornutt December 04, 2012 @ 11:34:54
On PHPMaster.com today there's a new tutorial showing you how to use Swift Mailer, a popular (and well-established) mailing tool.
Sending emails programmatically is a common task that programmers must deal with often. Although you can use PHP's native functions, they can be too low-level, especially when you want to attach one or more files to your message. If you don't want to use the native functions, or if you want to send mail using an object-oriented approach, then this is the article for you. I'll introduce you to Swift Mailer, a powerful component-based library that let's you send emails easily. Started in 2005, Swift Mailer is a library that provides several classes that allow you to send emails from within your PHP scripts or web applications.
Included in the post are a basic example of sending a plain-text email, working with attachments and including a template into the body of the message (with spots to fill text in).
voice your opinion now!
swiftmailer introduction tutorial email pear
Sebastian Göttschkes: symfony2 Testing email sending
by Chris Cornutt September 13, 2012 @ 08:52:03
Sebastian Göttschkes has a new post showing a method he's come up with to test email sending in a Symfony2 application.
On my endless struggle to achieving 100% code coverage and catching every possible (and impossible) test case (I'm just kiddinh, please don't do this!) I was in need for some way to test the sending of emails. This blog post will show you how to test this within a symfony2 (I'm using symfony 2.1 RC2) application, using the default swiftmailer.
It's not unit testing, it's functional testing, and he provides a bit of background on the process first then sets up a dummy listener for testing and how to plug in the Symfony2 functionality (via a getContainer call to get the DIC).
voice your opinion now!
symfony2 swiftmailer testing webtest email send
Fabien Potencier's Blog: Swift Mailer Takeover
by Chris Cornutt September 17, 2009 @ 10:44:03
As is mentioned in the latest post to his blog, Fabien Potencier has taken over as the project manager for the SwiftMailer project:
This is a great honor for me to take over such a project. The Swift Mailer project has been initiated by Chris Corbyn some years ago. He has done a wonderful job during the years, trying to find the best way to create a top-notch emailing solution for PHP. With the release of the 4th version of Swift Mailer earlier this year, I think we now have a very solid mailing library.
As a part of the effort to expand the use of the mailing library, it will become the default emailing solution for the Symfony framework. You can learn more about Swift Mailer from the project's website.
voice your opinion now!
swiftmailer symfony project manager
Symfony Blog: How to send emails in symfony 1.1
by Chris Cornutt June 12, 2008 @ 10:25:29
On the Symfony blog, there's a new post showing the answer to a common question framework users have - what's the best way to send emails from inside our framework applications.
Sending mails is a web developer's everyday task, and symfony 1.1 let you do this easier than ever using Swift Mailer. Swift Mailer is a well thought, fully featured PHP5 object library that will cover 120% of your mailing needs.
They show how to create a partial or a component in your application that generates the content for the emails and pushes that result out to the Swift Mailer application. They show the (simple) installation from a svn checkout and two examples of sending emails, one simple and another with a multipart message.
voice your opinion now!
send email symfony framework swiftmailer component tutorial
|
Community Events
Don't see your event here? Let us know!
|