Setting Email Attachments

You can send attachments with an email activity. Each attachment has three elements: name, MIME type, and value. All three elements must be set for each attachment.

To add an attachment to an email message:

  1. From the Components window, select Email as the notification channel.
  2. Specify values for To, Subject, and Body.
  3. Click the Attachments tab. Figure 17-4 provides details.
  4. Click the Add icon to add as many attachments as you require. The number of attachments does not need to include the body part.
  5. In the Name field, change the name or accept the default value of Attachmentnumber.
  6. In the Mime Type field, click the Browse icon to invoke the Expression Builder dialog for adding MIME type contents.
  7. When complete, click OK to return to the Attachments tab.
  8. In the Value field, click the Browse icon to invoke the Expression Builder dialog for adding the contents of the attachment.
  9. When complete, click OK to return to the Attachments tab.

    The BPEL fragment with an assign activity with multiple copy rules is generated. One of the copy rules copies the attachment.

  10. Click OK.
  11. Expand the Email activity in Oracle BPEL Designer.

    An assign activity named EmailParamsAssign appears.

  12. Double-click EmailParamsAssign.

    Note the settings in EmailParamsAssign, as shown in Figure 17-5.

    Figure 17-5 EmailParamsAssign Assign Activity

    Description of Figure 17-5 follows
    Description of "Figure 17-5 EmailParamsAssign Assign Activity"

For more information about sending attachments using email, see the following documentation: