Guest User

Untitled

a guest
Mar 30th, 2018
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. app/config/config.yml settings:
  2. # Swiftmailer Configuration
  3. swiftmailer:
  4. transport: "%mailer_transport%"
  5. host: "%mailer_host%"
  6. username: "%mailer_user%"
  7. password: "%mailer_password%"
  8. spool: { type: memory }
  9. port: 587
  10.  
  11. aap/config/parameters.yml
  12. mailer_transport: smtp
  13. mailer_host: smtp.sendgrid.net
  14. mailer_user: <username>
  15. mailer_password: <password>
  16.  
  17. $recipient = $this->container->getParameter('contact_email');
  18. $message = Swift_Message::newInstance()
  19. ->setFrom($recipient)
  20. ->setTo($teenEmailId)
  21. ->setSubject('Your order is sent')
  22. ->setBody('checking sending email from emailCart');
  23.  
  24. $result = $this->get('mailer')->send($message, $failures);
  25. $logger->error("email sent to teen ".$result. " fail:".$failures);`
  26.  
  27. [2018-03-29 06:14:33] app.ERROR: teenemail:skverma_in@yahoo.com --msg:testing only email now --parent email:skvermain@gmail.com sending from:hello@<domain.com> [] []
  28. [2018-03-29 06:14:33] app.ERROR: email sent to teen 1 fail:Array [] []
  29. [2018-03-29 06:14:33] app.ERROR: Email 3 mail sent to Parent:skvermain@gmail.com [] []
  30. [2018-03-29 06:14:33] app.ERROR: Result:1 fail:Array [] []`
Add Comment
Please, Sign In to add comment