I am working on a spring (annotation based) application.
One of the page asks user to provide their contact details and message. Once this page is submitted, I want these details to be sent by email to my company ID.
Can someone provide sample example/code which I can use to achieve this functionality? I want to use gmail smpt server.
Look here:
http://static.springsource.org/spring/docs/3.0.x/reference/mail.html
Create a JavaMailSenderImpl bean with the SMTP data from GMail and register it into the application context.