Add debug message when emails are sent