Add email log functionality.