Send mail from Portal application using java
I'm looking for a way to send mails from my portal application written in java.
Now I've read a lot of topics on this but can't seem to get it straight.
I added a few jars to my project among which is
Here you have the ISendMailItem.class and ISendMailService.class files.
Now I know these are interfaces so I created 2 new classes:
Mail implementing ISendMailItem
SendMail implementing ISendMailService
And all of the forced methods are created for me but now I don't know how to use these classes to be able to send a mail.
Can someone help me with this please?