Sending Mail

View: New views
1 Messages — Rating Filter:   Alert me  

Sending Mail

by Mahesh_programmer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

       
I am using velocity, springs & Ibatis to send mails.

DataSourceResourceLoader class is overridden at the start of the server which fetches the template from DB

getMailMapClient().queryForObject("fetchTemplate", pParameter);
String template = (String) pParameter.get("template");

Now I want to set the template in a vm file dynamically. How do I do it?
While calling mergeTempalateIntoString method, what should the string templateLocation contain?

VelocityEngineUtils.mergeTemplateIntoString(aVelocityEngine, templateLocation, model);
LightInTheBox - Buy quality products at wholesale price