Open pearcec opened 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).
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.