Author |
Message
|
sandeep9678 |
Posted: Tue Jul 10, 2012 8:30 pm Post subject: Template Based email sending facility |
|
|
 Apprentice
Joined: 04 Aug 2008 Posts: 41 Location: India
|
We have to dynamically pick up templates defined and then populate some of data in Template and then send it through email and SMS.
Can we send pick up Template dynamically from database or filesystem and populate it with some data and send it accross? We are using Message Broker v7.0
Have any one done something like this? _________________ Cheers,
Sandeep |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 11, 2012 4:34 am Post subject: Re: Template Based email sending facility |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sandeep9678 wrote: |
Can we send pick up Template dynamically from database or filesystem and populate it with some data and send it accross? |
You can certainly pick up data from a database. WMB can certainly send data assembled inside a message flow as an email. There have been a number of discussions in this forum about how to send SMS from WMB; the best general advice is to see what kind of methods your SMS provider supports to receive SMS.
As to how you'd populate a template with data, that's a design and coding question. Have fun & let us know how you get on. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jul 11, 2012 5:02 am Post subject: Re: Template Based email sending facility |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
sandeep9678 wrote: |
We have to dynamically pick up templates defined and then populate some of data in Template and then send it through email and SMS.
Can we send pick up Template dynamically from database or filesystem and populate it with some data and send it accross? We are using Message Broker v7.0
Have any one done something like this? |
Yes, this is exactly how we do it. We use SOAPInput node to host a Web Service that maps the incoming XML to a pre-defined template. That way, the email gets sent to the customer with pre-approved format and language. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
sandeep9678 |
Posted: Wed Jul 11, 2012 7:28 am Post subject: Re: Template Based email sending facility |
|
|
 Apprentice
Joined: 04 Aug 2008 Posts: 41 Location: India
|
Thanks Vitor and Lancelotlinc for your quick reply and such helpful information on the topic.
Client is having WebSphere Portal Server in which they will define templates. We need to pick up those templates and then populate some part with data dynamically and send it as email.
Also we need multilingual support. In what format the the Portal can store the templates and what kind of format WMB expect?
Which parser we can use to handle this kind of templates?
Template might have data with images. _________________ Cheers,
Sandeep |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jul 11, 2012 7:36 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You are failing to understand the work in front of you.
Portal can store the data in any format it wants.
Broker can expect any format you want it to expect.
Broker has no built-in idea of a "template".
You must develop everything.
You can store the template as a MIME document into a CLOB in a database and read it from Broker and tell Broker to parse it into a MIME document again.
You can store the template as an XML document on a file system and tell broker to read the file and parse it as an xml document.
You can expose a webservice in Portal to provide the template to Broker.
You can expose a webservice in Portal to accept a set of information and return a completed instance of the template.
You can develop whatever you want.
Best of luck! Happy Coding! |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jul 11, 2012 7:44 am Post subject: Re: Template Based email sending facility |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
sandeep9678 wrote: |
Thanks Vitor and Lancelotlinc for your quick reply and such helpful information on the topic.
Client is having WebSphere Portal Server in which they will define templates. We need to pick up those templates and then populate some part with data dynamically and send it as email.
Also we need multilingual support. In what format the the Portal can store the templates and what kind of format WMB expect?
Which parser we can use to handle this kind of templates?
Template might have data with images. |
Write the template fulfillment part in WAS using MDB with a Web Service front end. Have WMB call the Web Service and send an XML document to the Web Service with the data part of the information that belongs in that template.
You need two development efforts: one for WMB and one for WAS. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
sandeep9678 |
Posted: Wed Jul 11, 2012 8:18 am Post subject: Re: Template Based email sending facility |
|
|
 Apprentice
Joined: 04 Aug 2008 Posts: 41 Location: India
|
Thanks mqjeff & lancelotlinc.
we will evaluate both options for our project and how client would like to see the architecture.
Thanks a lot for your input. _________________ Cheers,
Sandeep |
|
Back to top |
|
 |
inMo |
Posted: Fri Jul 13, 2012 12:16 pm Post subject: Re: Template Based email sending facility |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
lancelotlinc wrote: |
Write the template fulfillment part in WAS using MDB with a Web Service front end. Have WMB call the Web Service and send an XML document to the Web Service with the data part of the information that belongs in that template.
You need two development efforts: one for WMB and one for WAS. |
You did note the clarifications such as "You must develop everything." and "Broker has no built-in idea of a "template"? Wasn't this the perfect time to promote some training? |
|
Back to top |
|
 |
|