Index Changes

Difference between version and version     

Back to Email BC.Quick Start, or Email BC.Quick Start Info


At line 9 changed 2 lines.
The email bc uses JavaMail api to send email message using the SMTP protocol. As with email clients (like eudora, thunderbird, outlook express etc), the email bc needs some configuration to be able to send emails successfully.
All the configuration for the email bc is specified in the WSDL. The netbeans binding wizard (or the WSDL wizard) can be used to create a wsdl file with most common of the configuration.
The Email BC uses JavaMail API to send email messages using the SMTP protocol. As with email clients (like Eudora, Thunderbird, Outlook Express etc), the Email BC needs some configuration to be able to send emails successfully.
All the configuration for the Email BC is specified in the WSDL. The netbeans binding wizard (or the WSDL wizard) can be used to create a wsdl file with most common of the configuration.
\\
At line 13 added 1 line.
\\
At line 17 changed 2 lines.
[{Image src='EmailWizard-SMTP-Step1.PNG' width='500' height='250' align='center' }]
Click on Next, the configuration page will show up.
[{Image src='SendEmail_SMTP1.png' width='687' height='450' align='center' }]
Click on Next, the SMTP Settings screen will show up.
At line 20 changed 2 lines.
[{Image src='EmailWizard-SMTP-Step2.PNG' width='500' height='250' align='center' }]
The important part of this page is the __SMTP server__ and the __Port__, examples are ''smtp.gmail.com'' and ''465''.
[{Image src='SendEmail_SMTP2.png' width='741' height='628' align='center' }]
The important fields/attributes in this screen are the __SMTP Server__ and the __Port__, for example ''smtp.gmail.com'' and ''465''.
At line 31 added 4 lines.
The Email BC allows you to send attachments along with the email message. After the configuration for the Email BC is specified in the WSDL, do the following
# Open the defined WSDL
# Go to the attribute "''email:SMTPinput''"
# Right click and select "''Add SMTP attachment''" option
At line 36 added 4 lines.
[{Image src='SendEmailAttach_SMTP1.png' width='581' height='433' align='center' }]
Multiple attachments can be added to the email message in this manner.
At line 41 added 9 lines.
The Email BC uses JavaMail API to receive email messages using the IMAP protocol. As with email clients (like Eudora, Thunderbird, Outlook Express etc), the Email BC needs some configuration to be able to receive emails successfully.
All the configuration for the Email BC is specified in the WSDL. The netbeans binding wizard (or the WSDL wizard) can be used to create a wsdl file with most common of the configuration.
\\
\\The netbeans binding wizard is available under "''New File Wizard (Ctrl+N) > ESB > Binding''".
\\
\\The netbeans wsdl wizard is available under "''New File Wizard (Ctrl+N) > XML > WSDL Document''".
In both cases, select the following values:
#Binding = ''Email''
#Type = ''Read Email (using IMAP)''
At line 51 added 12 lines.
[{Image src='ReadEmail_IMAP1.png' width='735' height='505' align='center' }]
Click on Next, the IMAP Settings screen will show up.
!Configuration:
[{Image src='ReadEmail_IMAP2.png' width='651' height='625' align='center' }]
The important fields/attributes in this screen are the __Email Server__ and the __Port__, for example ''imap.gmail.com'' and ''995''.
\\You can refer to your email client's IMAP server settings to set the values here (or ask an administrator).
In case the IMAP server requires authentication, you need to provide the __User Name__ and __Password__.
For secure authentication, just select the checkbox "__Use SSL__".
At line 64 added 10 lines.
The Email BC uses JavaMail API to receive email messages using the POP3 protocol. As with email clients (like Eudora, Thunderbird, Outlook Express etc), the Email BC needs some configuration to be able to receive emails successfully.
All the configuration for the Email BC is specified in the WSDL. The netbeans binding wizard (or the WSDL wizard) can be used to create a wsdl file with most common of the configuration.
\\
\\The netbeans binding wizard is available under "''New File Wizard (Ctrl+N) > ESB > Binding''".
\\
\\The netbeans wsdl wizard is available under "''New File Wizard (Ctrl+N) > XML > WSDL Document''".
In both cases, select the following values:
#Binding = ''Email''
#Type = ''Read Email (using POP3)''
[{Image src='ReadEmail_POP1.png' width='734' height='502' align='center' }]
At line 34 changed 1 line.
!!Attachment support
Click on Next, the IMAP Settings screen will show up.
!Configuration:
At line 78 added 3 lines.
[{Image src='ReadEmail_POP2.png' width='719' height='600' align='center' }]
The important fields/attributes in this screen are the __Email Server__ and the __Port__, for example ''pop.gmail.com'' and ''995''.
\\You can refer to your email client's POP3 server settings to set the values here (or ask an administrator).
At line 82 added 28 lines.
In case the POP3 server requires authentication, you need to provide the __User Name__ and __Password__.
For secure authentication, just select the checkbox "__Use SSL__".
!!Attachment Support
Email BC supports attaching various files with different mime types to emails. The supported mime types are
* text/html
* text/xml
* multipart/mixed
* multipart/alternative
* multipart/related
* image/jpeg
* image/gif
* image/png
* application/octet-stream and unknown types
Apart from attaching files to the email message as mentioned above (right click on email:SMTPinput and add files), there are other options to attach files to a email message.
!Using Handle NM Attachments feature
This feature indicates that the email attachments are converted to JBI Normalized Message Attachments. In a scenario like File BC Read > BPEL > Email BC Send, while defining the File BC WSDL, enable the option "''Forward as Attachment''" which would forward the data as an attachment. The attachment from File BC will be attached as Email Attachments
\\
\\
While defining the Email BC WSDL configuration, enable the option "''Send Attachments as Normalized Message Attachments''". All the attachments would be converted as JBI NM Attachments.
[{Image src='SendEmailAttach_SMTP2.png' width='752' height='604' align='center' }]
!Using NM Property feature
Using Normalized Message property, in the BPEL Mapper, Email BC > Outbound > Attachment File Paths(org.glassfish.openesb.email.outbound.attachmentFilePaths). Attachment file path can be specified in quotes, for example "C:\Temp\input.txt". To specify multiple attachments use space separated values in quotes, for example, "C:\Temp\input.txt" "C:\Temp\output.txt".
At line 56 changed 13 lines.
| org.glassfish.openesb.email.inbound.emailserver | | String
| org.glassfish.openesb.email.inbound.port | | String
| org.glassfish.openesb.email.inbound.username | | String
| org.glassfish.openesb.email.inbound.password | | String
| org.glassfish.openesb.email.inbound.usessl | | String
| org.glassfish.openesb.email.inbound.maxmessagecount | | String
| org.glassfish.openesb.email.inbound.ackmode | | String
| org.glassfish.openesb.email.inbound.ackoperation | | String
| org.glassfish.openesb.email.inbound.pollinginterval | | String
| org.glassfish.openesb.email.inbound.saveattachmentstodir | | String
| org.glassfish.openesb.email.inbound.mailfolder | | String
| org.glassfish.openesb.email.inbound.attachments | | String
| org.glassfish.openesb.email.inbound.attachments.count | | int
| org.glassfish.openesb.email.inbound.emailserver | The email server host used for sending/receiving emails. | String
| org.glassfish.openesb.email.inbound.port | The email server port number. | String
| org.glassfish.openesb.email.inbound.username | The user name used for authentication. | String
| org.glassfish.openesb.email.inbound.password | The password used for authentication. | String
| org.glassfish.openesb.email.inbound.usessl | Whether to use SSL for connection, "''true''" or "''false''". | String
| org.glassfish.openesb.email.inbound.maxmessagecount | The maximum number of messages for each poll interval. | String
| org.glassfish.openesb.email.inbound.ackmode | Message Acknowledgement Mode on the response, "''manual''" or "''automatic''". | String
| org.glassfish.openesb.email.inbound.ackoperation | Operation used to acknowledge the message, when message acknowledgement mode is "''automatic''". | String
| org.glassfish.openesb.email.inbound.pollinginterval | Interval between each poll activity for new emails on email server in seconds. | String
| org.glassfish.openesb.email.inbound.saveattachmentstodir | When specified, the email attachments will be saved as files in your local file system. It is the local directory name where the email attachments will be saved to. The base file name will come from the attachment name. | String
| org.glassfish.openesb.email.inbound.mailfolder | The folder on the email server to poll for new emails. | String
| org.glassfish.openesb.email.inbound.attachments | Specifies the attachments file path's. | String
| org.glassfish.openesb.email.inbound.attachments.count | Specifies the number of attachments. | int
At line 73 changed 9 lines.
| org.glassfish.openesb.email.outbound.emailserver | | String
| org.glassfish.openesb.email.outbound.port | | String
| org.glassfish.openesb.email.outbound.username | | String
| org.glassfish.openesb.email.outbound.password | | String
| org.glassfish.openesb.email.outbound.usessl | | String
| org.glassfish.openesb.email.outbound.location | | String
| org.glassfish.openesb.email.outbound.sendoption | | String
| org.glassfish.openesb.email.outbound.embedimagesinhtml | | String
| org.glassfish.openesb.email.outbound.attachmentFilePaths | | String
| org.glassfish.openesb.email.outbound.emailserver | The email server host used for sending/receiving emails. | String
| org.glassfish.openesb.email.outbound.port | The email server port number. | String
| org.glassfish.openesb.email.outbound.username | The user name used for authentication. | String
| org.glassfish.openesb.email.outbound.password | The password used for authentication. | String
| org.glassfish.openesb.email.outbound.usessl | Whether to use SSL for connection, "''true''" or "''false''". | String
| org.glassfish.openesb.email.outbound.location | The standard "mailto" URL Scheme (RFC 2368). | String
| org.glassfish.openesb.email.outbound.sendoption | To specify the email content is in "''Text Only''", "''HTML Only''", "''XML Only''", "''Both Text and HTML''", "''Both Text and XML''". The default is "''Text Only''". | String
| org.glassfish.openesb.email.outbound.embedimagesinhtml | When "''true''", the html image is embedded into the html document. | String
| org.glassfish.openesb.email.outbound.attachmentFilePaths | Specifies the attachments file path's. | String
At line 135 changed 1 line.
Now when the application is deployed, SMTP Server authentication should be using the __userName__ value "''abc123''"
Now when the application is deployed, SMTP Server authentication should be done using the __userName__ value "''abc123''"
At line 196 changed 1 line.
!!Sending emails with Non-english content (using charset property)
!!Sending Emails with Non-English Content
Email BC supports sending email messages with non-english content. While defining the Email BC configuration, select the "''Character Encoding''" to use.
At line 272 added 2 lines.
[{Image src='SendEmailCharset_SMTP1.png' width='730' height='642' align='center' }]

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-59) was last changed on 08-Dec-09 02:30 AM, -0800 by GautamiK