Hi All,

I tried to send mail using mailto transport with the proxy service [1].
When I use ESB 5.0.0 I got a  file with given payload . But with ESB 4.9.0
got the payload as mail body.

is this the expected behaviour?


[1]
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse";
       name="sendMail"
       startOnLoad="true"
       statistics="disable"
       trace="disable"
       transports="https,http">
   <target>
      <inSequence>
         <property name="emailContent" type="STRING" value="hello"/>
         <property name="messageType"
                   scope="axis2"
                   type="STRING"
                   value="text/html"/>
         <property name="ContentType" scope="axis2" value="text/html"/>
         <property name="Subject" scope="transport" value="Testing ESB"/>
         <property name="OUT_ONLY" value="true"/>
         <property name="FORCE_SC_ACCEPTED" scope="axis2" value="true"/>
         <payloadFactory media-type="xml">
            <format>
               <ns:text xmlns:ns="http://ws.apache.org/commons/ns/payload
">$1</ns:text>
            </format>
            <args>
               <arg evaluator="xml"
expression="get-property('emailContent')"/>
            </args>
         </payloadFactory>
         <send>
            <endpoint>
               <address uri="mailto:[email protected]"/>
            </endpoint>
         </send>
      </inSequence>
   </target>
   <description/>
</proxy>


Thanks

Kesavan Yogarajah
Software Engineer
Mobile :+94 (0) 779 758021
[email protected]
WSO2, Inc.
lean . enterprise . middleware

Attachment: noname
Description: Binary data

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to