sendEmail helper; only log detail on debug