0

I'm trying use the API common mail to send email with my vaadin project. I add the jar file in my buildpath and in WEB-INF/lib but does not work.

This API works with vaadin ? If not works which I can use ?

FernandoPaiva
  • 4,410
  • 13
  • 59
  • 118
  • what does not work? any exceptions? any stacktrace? – nexus Dec 13 '13 at 17:29
  • When I try use SimpleMail on my project does not import the API. I do try import "import org.apache.commons.mail.SimpleEmail" but does't work also. The problem is that I can't import the packages of API and I don't understand why not import if I added API on my Build Path. – FernandoPaiva Dec 13 '13 at 17:46
  • That rather looks like an IDE problem. I'm sure it'll work as soon as you fixed that. Which IDE do you use? – nexus Dec 13 '13 at 17:53
  • I guess so !!! I'm using Eclipse Kepler. The stranger is that I use others libs and does work, for example mysql-connection.jar works. – FernandoPaiva Dec 13 '13 at 18:02
  • Try to refresh the whole project within eclipse. Show a printscreen of your bildpath. – nexus Dec 13 '13 at 18:24
  • I did refresh and close/open Eclipse and not work...here the printscreen: http://dc191.4shared.com/img/Tg1XfqJc/s7/142ed4079d8/Captura_de_tela_de_2013-12-13_.png – FernandoPaiva Dec 13 '13 at 18:42
  • I've given an answer according to your printscreen and coments. – nexus Dec 13 '13 at 19:23

1 Answers1

1

When using Apache Common Mail you also need the JavaMail API. Add this jar to your buildpath & WEB-INF/lib folder as well.

nexus
  • 2,937
  • 3
  • 17
  • 22