e-mail notifications using the logging module