News Feed
Jobs Feed
Sections




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

Paul Jones' Blog:
Sending Mail with Solar
July 18, 2007 @ 13:48:00

Paul Jones has posted a new tutorial about using the mail functionality of the Solar framework - the Solar_Mail and Solar_Stmp packages.

While each of these [PEAR Mail, PhpMailer, SwiftMailer, Zend_Mail] will work with Solar, the new Solar_Mail and Solar_Smtp packages work "natively", in that they support automatic configuration, locale and exception inheritance, and so on. Read on for some examples on how to use them.

In his example he sets up and sends a simple message, setting the contents of the email (sent as an HTML message). Since there's been much talk about the safety of a lot of the mailing systems in frameworks, Paul talks about how it's been secured from header injections, through safe attachments, and from a transport dependency-injection for SMTP.

There's even a method included that lets you take the SMTP information out of the script and put it into the Solar configuration file to use in the entire application.

1 comment voice your opinion now!
mail solar framework tutorial attachment header injection transport dependency mail solar framework tutorial attachment header injection transport dependency


blog comments powered by Disqus

Similar Posts

Piotr Walczyszyn's Blog: Configuring Eclipse PDT & Flash Builder 4 Plug-in for PHP/Flex development

Asvin Balloo's Blog: Geolocate your visitors with PHP (part 1)

Pádraic Brady's Blog: RESTful Web Services with Zend Framework

Symfony Blog: Symfony 1.0.10 is Out

PHPBuilder: Pro PHP Security / Preventing SQL Injection, Part 2


Community Events











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


symfony2 unittest install podcast overview introduction opinion security hack release package composer framework performance component database hhvm language facebook application

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