I\'d like to use spring support for sending mails. My project is built with maven-2 and I use spring-core 2.5.5 I tried to look in maven central repo for artifact to include in
For using MailSender
and SimpleMailMessage
through Spring you can use these imports in your code:
import org.springframework.mail.MailSender;
import org.springframework.mail.SimpleMailMessage;
And add their jars in your project.
Otherwise if you are using maven then you have to make these imports in your source and then add dependencies :
You will get the mail support from both of them.