Petals-BC-Mail 3.1.x

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (23)

View Page History

* Out-Payload mode: The service allows the consumer to send a JBI message to the component by setting ws-addressing properties in the incoming message exchange which defines all the information needed to send an email.The content of the mail (body) is in the payload of the mesage.
{center}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}

|| Attribute || Description || Default || Required ||
| \{[http://www.w3.org/2005/08/addressing]}To | email address of the recipient | \- | Yes |
| \{[http://petals.ow2.org/components/mail/version-3]}ContentType | The mail mime type | text/plain | no |
{table-plus}
{center}
h2. Static exposition

{table-plus}




|| Parameter || Description || Default || Required ||
| scheme | the connection protocol (smtp) | {center}\-{center} | {center}Yes{center} |
Petals Mail binding component (MailBC) allows to receive mails from external consumer and to bind them to message exchanges intinded to internal jbi components. To receive new mails, MailBC can be linked to specific mail stores. It will check these stores periodicaly to retrieve new mails. If it finds a new mail in a store, it will process it (map this mail to a message exchange) and send it to the targeted jbi endpoint. Then the mail is removed from the store. So, all mails (read or unread) in a store are considered as new mail.

* Step 1 : An External Consumer Entity (Business Service or simple mail client) sends an email to the registered Mail Store (a classical email account).
* Step 2 : Mail Binding Component periodicaly checks for new mails and imports them.
* Step 3 and 4 : Mail Binding Component processes this new mails : transforms them into Message Exchanges, sends them to targeted jbi components (step 4) and finally delete them from the mail Store.



Petals Mail binding component can be configured by deploying a new service unit to it. The jbi descriptor (jbi.xml file) of this service unit must contains a consumes node describing the link between an external mail store and an internal jbi endpoint. Here is an exemple of jbi descriptor activating a new "consumed service" :
{center}
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
</jbi:jbi>
{code}
{center}
{include:0 CDK SU Consume Configuration}

\\
{center}{*}Configuration of a Service Unit to consume a service (Mail)*{center}
{center}
{table-plus}




|| Parameter || Description || Default || Required ||
| scheme | the connection protocol (imap or pop3) | {center}\-{center} \- | {center}Yes{center} Yes |
| username | the username used for authentication | {center}\-{center} \- | {center}No{center} No |
| password | the password used for authentication. Can be null or empty | {center}\-{center} \- | {center}No{center} No |
| host | the host used for connection | {center}\-{center} \- | {center}Yes{center} Yes |
| port | the port used for connection | {center}* * imap : 143 * pop3 : 110 | No |
* pop3 : 110{center} | {center}No{center} |
| folder | the folder to check for new mails | {center}INBOX{center} INBOX | {center}No{center} No |
| period | the checking period time | {center}60 000 ms{center} | {center}No{center} |
| period | the checking period time | 60 000 ms | No |
| expunge | Expunge deleted messages (read messages are marked as DELETED, default is TRUE) | {center}true{center} true | {center}No{center} No |
{table-plus}
{center}

{include:0 CDK SU Interceptor configuration}



|| Parameter || Description || Default || Required ||
| host | Define the smtp server address | {center}\-{center} | {center}Yes{center} |