The email object itself contains the destination properties.
An email itself depending on its type [simple, mime, html] has different content types.
The base email object always has to, cc, bcc.
See:
http://commons.apache.org/email/userguide.html
The sending of multiple emails is to add flexibility. Generally you will want to produce
one email with multiple to/cc/bccs defined. However, there is a business case where the
email producer could produce multiple emails with one to address. An example would be a
customer facing email.
Let's say a healthcare company needs to produce an email to all of its patients. They
could create a custom email producer that produces multiple emails, one for each patient,
personallized to that patient. Each email containing one to address, the patients. Maybe
the business process is as follows.
Office closed business process.
1) Send email to each patient telling them their appointment has been cancelled, and
to call us.
2) Send email to all practitioners to tell them not to come in.
For the patient emails, the email maybe should read "Brad Davis, your appointment for
10:00 AM has been canceled due to inclement weather." But this should be per
patient. So, yours reads "Tom Baeyens, your appointment for 11:00 AM has been
canceled due to inclement weather." and so on and so forth.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224075#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...