Made Totem write to console when sending emails to try to find the double emailing log file bug