130.SendEmailWithAttachments
721387Sep 9 2009 — edited Sep 10 2009Hi all:
I want to Setting E-mail Attachments,So I Search for BodyPart[2] and set the required values. The steps to send the attachment MyImage.gif, for example, are as follows:
------------------------------------------------------------------------------
<copy>
<from expression="string('image/gif')"/>
<to variable="varNotificationReq" part="EmailPayload"
query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1
:MimeType"/>
</copy>
<copy>
<from expression="string('MyImage.gif')"/>
<to variable="varNotificationReq" part="EmailPayload"
query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1
:BodyPartName"/>
</copy>
<copy>
<from expression="ora:readFile(‘file://C:/MyImage.gif’)"/>
<to variable="varNotificationReq" part="EmailPayload"
query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1
:ContentBody"/>
</copy>
------------------------------------------------------------------------------------------------------------------
<2009-09-10 08:42:29,859> <ERROR> <default.collaxa.cube.xml> ORABPEL-09500
XPath express cannot run successfully.
When Handling with xpath express"ora:readFile("file://C:/MyImage.gif")",error:" C".
Please check out the xpath query.