Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. # Symfony Troubleshooting
  2.  
  3.  
  4. ## SwiftMailer
  5.  
  6. Symfony has a nice mailing system provided as a plug-and-play package, but sometime some tweaks are needed.
  7.  
  8. ### Error Management
  9.  
  10. The swiftmailer do not fire exceptions, instead the `send(message)` method returns the number of successful recipients that can be zero (representing an issue). However, another sent method exists: `sent(message, failedRecipients)` which returns the list of failed email addresses.
  11.  
  12. Keep in mind that this errors are usually not catched during the normal code execution because the email sending is spooled.
  13.  
  14. ### Checks
  15.  
  16. The swiftmailer checks the *from* address and the *to* address, comporting a failure if this addresses are fake. Keep this in mind when you do functional testing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement