Add some precautions in email sending.