Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tystr_sendgrid:
- username: username
- password: password
- $message = Swift_Message::newInstance()
- ->setSubject('Periodic Report')
- ->setFrom('abc@gmail.com')
- ->setTo($userEmail)
- ->setBody(
- $this->getContainer()->get('templating')->render(
- 'aaaaa:layouts:mailReportSend.txt.twig',
- array('data'=> $data)
- )
- );
- $sendgrid = $this->getContainer()->get('tystr_sendgrid.sendgrid');
- $sendgrid->send($message);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement