I notice that when sending error emails using log4j, there's a pause in the program's execution as the SMTP protocol negotiates and commits.
What is the recommended way to make the sending of error emails asynchronous?
Does this have implications if an error is fatal to the process? I don't want the process to die before the email is sent, in the case of a terminal exception.