Created
December 22, 2014 10:47
-
-
Save julienhay/ae03c7804d68332ae9d1 to your computer and use it in GitHub Desktop.
Send mail mandrill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dispatcher = $this->get('hip_mandrill.dispatcher'); | |
$message = new Message(); | |
$message | |
->setFromEmail('[email protected]') | |
->setFromName('Customer Care') | |
->addTo('[email protected]') | |
->setSubject('Some Subject') | |
->addGlobalMergeVar('FNAME', 'HELLO LES COCO2'); | |
$result = $dispatcher->send($message); | |
dump($result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment