This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Spring and the fly likes how can i send a mail using spring service? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "how can i send a mail using spring service?" Watch "how can i send a mail using spring service?" New topic
Author

how can i send a mail using spring service?

shyam sunder prasad
Ranch Hand

Joined: Mar 23, 2011
Posts: 62
as of now i can send mail using java mail with hard coding in java class.

some told me that as we also send mail using spring service?
please help by telling that.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Here's a link to that exact documentation on Email in Spring
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mail.html

Basically a MailSender class that you define as a bean and use it to send a MailMessage object.

Good Luck.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
shyam sunder prasad
Ranch Hand

Joined: Mar 23, 2011
Posts: 62
thank you
 
Don't get me started about those stupid light bulbs.
 
subject: how can i send a mail using spring service?