xforty / vagrant-drupal

Template repo for a new drupal project built on top of a vagrant vm.
Other
46 stars 11 forks source link

Add MailCatcher #8

Open pearcec opened 12 years ago

pearcec commented 12 years ago

Often times you are pulling in a production database with production data. While there are sanitization libraries they can't guarantee someone didn't setup a rule or hard code an email. With http://mailcatcher.me/ you could setup your dev environment to catch all the outgoing mail. This prevents the embarrassment of sending out emails to live people from a development environment.

dkingofpa commented 12 years ago

There are a number of ways to handle outgoing emails in a dev environment that has production data. Using Drupal's TestingMailSystem is probably the simplest way. There are also Drupal modules like Reroute Email that makes use of hook_mail_alter and allows emails sent via drupal to be re-routed to an email address of your choosing.

Using MailCatcher would be great as it would capture ALL outgoing mail from the vm (not just those sent by drupal).