Handle smtplib.SMTPAuthenticationError.

Ticket: #7091