News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Sending Email with Swift Mailer
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).

0 comments voice your opinion now!
swiftmailer introduction tutorial email pear


blog comments powered by Disqus

Similar Posts

Okaka Design Blog: Event calendar using Codeigniter and jQuery without BackendPro

WebCheatSheet.com: Two New Tutorials - Database Export & Sending Email

Ibuildings techPortal: Tips for Working with DateTime in PHP

PHP-GTK Community Blog: Articles on other sites (PHP6, an Intro & Desktop Apps)

Ryan Mauger's Blog: Using Twig with Zend Framework


Community Events

Don't see your event here?
Let us know!


laravel opinion voicesoftheelephpant api interview example introduction laravel5 framework community video series release library version language security unittest php7 podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework