/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$mail_body = '<p>custom html mail content</p>'; $message = Swift_Message::newInstance('Message title') ->setBody($mail_body, 'text/html', 'utf-8'); try { $this->getMailer()->send($message); } catch(Exception $e) { // yay }
Comments
