Revision: 33193
Updated Code
at October 7, 2010 00:57 by metoikos
Updated Code
$mail_body = '<p>custom html mail content</p>'; $message = Swift_Message::newInstance('Message title') ->setFrom(array('sender')) ->setTo(array('receiver')) ->setBody($mail_body, 'text/html', 'utf-8'); try { $this->getMailer()->send($message); } catch(Exception $e) { // yay }
Revision: 33192
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 7, 2010 00:49 by metoikos
Initial Code
$mail_body = '<p>custom html mail content</p>'; $message = Swift_Message::newInstance('Message title') ->setFrom(array('sender')) ->setTo(array('receipt')) ->setBody($mail_body, 'text/html', 'utf-8'); try { $this->getMailer()->send($message); } catch(Exception $e) { // yay }
Initial URL
Initial Description
Initial Title
symfony html mail via swift mailer
Initial Tags
php, mail
Initial Language
PHP