• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i send a mail using spring service?

 
shyam sunder prasad
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shyam sunder prasad
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic