Intercept emails using Devel
One of the tough complexities of working in a local environment, is getting your webserver to send out emails. Configuring a mail client on your virtual machine to send out emails can be tough, if not impossible. It's a very poorly documented area few tend to venture into.
Fortunately in Drupal, there is a very simple solution:
First, add the following code to settings.php
# intercept emails using Devel $conf['mail_system'] = array( 'default-system' => 'DevelMailLog', );
Next, go into your sites temporary folder, typically in /tmp. Create a directory called devel-mails. This is where emails will be created as files instead of sent out.
Seems simple enough... until you recognize that the documentation skips the part about devel-mails, if you can even find this barely known function at all.