|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (1)
View Page HistoryThe component can also provide a generic SendMail service. This service allows the consumer to send a specific XML message to the component, which defines all the information needed to send an email. To use this generic service, the consumer has to call explicitely the {{\{service namespace}send}} operation.
The message send by the consumer has to respect the following definition :
{code:lang=xml}
<ns0:mail xmlns:ns0="http://petals.ow2.org/components/mail/version-3.0">
<ns0:from>from@from.com</ns0:from>
<ns0:reply>reply@reply.com</ns0:reply>
<ns0:to>to@to.com</ns0:to>
<ns0:subject>subject</ns0:subject>
<ns0:body>Hello, here is an email</ns0:body>
</ns0:mail>
{code}
\\
{center}
!mail_out.png!
*Sending mails*
{center}
# Step 1 : A JBI Consumer sends a Message Exchange to the Mail Binding Component.
# Step 2 : Mail Binding Component processes the Message Exchange : transforms it into a mail message and retrieve targeted External Provider Service (email address) linked to the endpoint set in the Message Exchange.
# Step 3 : Mail Binding Component sends this new mail to the targeted External Provider Service (Business Service, simple email account...).
{code:lang=xml}
<ns0:mail xmlns:ns0="http://petals.ow2.org/components/mail/version-3.0">
<ns0:from>from@from.com</ns0:from>
<ns0:reply>reply@reply.com</ns0:reply>
<ns0:to>to@to.com</ns0:to>
<ns0:subject>subject</ns0:subject>
<ns0:body>Hello, here is an email</ns0:body>
</ns0:mail>
{code}
\\
{center}
!mail_out.png!
*Sending mails*
{center}
# Step 1 : A JBI Consumer sends a Message Exchange to the Mail Binding Component.
# Step 2 : Mail Binding Component processes the Message Exchange : transforms it into a mail message and retrieve targeted External Provider Service (email address) linked to the endpoint set in the Message Exchange.
# Step 3 : Mail Binding Component sends this new mail to the targeted External Provider Service (Business Service, simple email account...).
h2. Send mails