Grumpy Monkey

Debugging mail in Drupal

There's a module for that...
devel has a setting at admin/settings/devel to switch Drupal mail to log emails instead of sending them out.
Set "SMTP library" to "Log only".
Puts useful debug data into $messages, too.

BlogDrupaldevel