academic_send_mail_log optimization