tag:blogger.com,1999:blog-27876765.post6214354822319842397..comments2024-03-20T13:37:39.909+01:00Comments on Day to day stuff: Reliably sending email with SpringErik van Oostenhttp://www.blogger.com/profile/15976519439979651010noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-27876765.post-43329477152282384142023-02-22T10:48:42.033+01:002023-02-22T10:48:42.033+01:00I have never seen Simple Java Mail. It sure has a ...I have never seen Simple Java Mail. It sure has a good first impression.Erik van Oostenhttps://www.blogger.com/profile/15976519439979651010noreply@blogger.comtag:blogger.com,1999:blog-27876765.post-64713907387926781232023-02-22T10:44:34.626+01:002023-02-22T10:44:34.626+01:00It's been a while, but have you ever considere...It's been a while, but have you ever considered Simple Java Mail for this? (https://www.simplejavamail.org)Benny Bottemahttps://www.blogger.com/profile/04501294615195774261noreply@blogger.comtag:blogger.com,1999:blog-27876765.post-81175543466561233432009-09-12T12:30:45.623+02:002009-09-12T12:30:45.623+02:00Wow, not nice. I read one other article that wrote...Wow, not nice. I read one other article that wrote that the code is a mess. I am no longer using it after an error on our production system. It turned out to be unrelated, but given these kind of reports, I never put it back.<br /><br />Conclusion: no, I no longer recommend this library.Erik van Oostenhttps://www.blogger.com/profile/15976519439979651010noreply@blogger.comtag:blogger.com,1999:blog-27876765.post-81214001194780064122009-09-11T09:58:03.346+02:002009-09-11T09:58:03.346+02:00It does look quite neat. But I did come across a ...It does look quite neat. But I did come across a thread saying that if errors do occur they are just logged, not thrown back to the client of the library:<br />http://www.velocityreviews.com/forums/t522096-ha-javamail-not-handling-exceptions.html<br /><br />I checked the code in TransportProxy.java and on line 574 I can see:<br /><br />catch (SendFailedException e)<br />{<br /> log.error("Failed to send message to invalid addresses: " + InternetAddress.toString(this.addresses), e);<br />}<br /><br />So it's not quite System.out as it says in the post, but it doesnn't look great.<br /><br />Have you had any issues, would you still recommend it?David Rousselhttps://www.blogger.com/profile/06412453076777492155noreply@blogger.com