Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4217
  • Last Modified:

Sending email from Spring MVC framework.

I want to send email from  spring mvc framework. I want an example code with its application-servlet.xml entries.
In email content data , i am having data comming from DB as email body . I don't want to send it as a file attachment.
Is there any way to send HTML template from spring mvc.
Please respond ASAP.
0
Shakil_Akhtar
Asked:
Shakil_Akhtar
  • 3
  • 3
1 Solution
 
objectsCommented:
0
 
Shakil_AkhtarAuthor Commented:
Its good but can u tell  me .How much data be can send from SimpleMailMessage setText(String) method .
Really this was good what you suggested.
0
 
objectsCommented:
theres no limit that I'm aware of.
any limits would be imposed by mail servers that the mail passed thru.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Shakil_AkhtarAuthor Commented:
Is this for setText(Stirng str) method ?
0
 
objectsCommented:
yes
0
 
Shakil_AkhtarAuthor Commented:
ok thanks ! I got my answer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now