It's not a secret anymore!
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 this week in the OCAJP 8 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: 17276
    
    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 - iOS Apps
How to Ask Questions the Smart Way FAQ
shyam sunder prasad
Ranch Hand

Joined: Mar 23, 2011
Posts: 62
thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i send a mail using spring service?
 
It's not a secret anymore!