Handles error when TARGETEMAIL is invalid.