On Exception only log the email ID at error level and log the whole email at trace level by JimPanic · Pull Request #291 · bbottema/simple-java-mail

Only log the whole contents of an Email object on trace log level instead of error. Otherwise the whole email is printed to the logs, which can blow up the amount of logs quite a bit for services sending emails automatically.

Alternatively, the Email.toString() method could be changed to actually not put in all the contents of text/html bodies.