Add increased logging to send_mail task