Return to Snippet

Revision: 41699
at February 22, 2011 20:13 by ef


Initial Code
$mailer = sfContext::getInstance()->getMailer();
sfContext::getInstance()->getConfiguration()->loadHelpers(array('Partial'));

$message = $mailer->compose(array('[email protected]' => 'Test mail'),
			    '[email protected]',
			    'Test');

$message->setBody(get_partial('global/userMailPartial'), 'text/html');
$mailer->send($message);

Initial URL


Initial Description


Initial Title
Send HTML mail with view partial from Symfony task

Initial Tags
mail

Initial Language
Symfony