SmtpMailer: retry sending if error occurs