Debugging mail in Drupal
Submitted by mcjim on Fri, 26/02/2010 - 11:24
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.