Hi Nifras,

This is common case to most of the samples. You need to make sure it points
to a valid configuration for any actual scenarios specially when work with
third party credentials[1] .

[1]
https://docs.wso2.com/display/ESB490/Sample+256%3A+Proxy+Services+with+the+MailTo+Transport

On Mon, May 16, 2016 at 2:31 PM, Nifras Ismail <[email protected]> wrote:

> Hi,
>
> Done. By changing the real credential of mine.
>
> <transportSender name="mailto"
> class="org.apache.axis2.transport.mail.MailTransportSender">
>         <parameter name="mail.smtp.host">smtp.gmail.com</parameter>
>         <parameter name="mail.smtp.port">587</parameter>
>         <parameter name="mail.smtp.starttls.enable">true</parameter>
>         <parameter name="mail.smtp.auth">true</parameter>
>         <parameter name="mail.smtp.user">*testmail*</parameter>
>         <parameter name="mail.smtp.password">*testmailPassword*
> </parameter>
>         <parameter name="mail.smtp.from">*[email protected]
> <[email protected]>*</parameter>
>     </transportSender>
>
> Thanks
>
>
> On Mon, May 16, 2016 at 2:08 PM, Nifras Ismail <[email protected]> wrote:
>
>> Hi All,
>>
>> I have trying to alter the sample 4 (Error handler) to sending the error
>> as mail.
>>
>> But unfortunately I could not receive the mail
>>
>> *I hope my mailto configuration on axis2.xml and my proxy services are
>> fine .*
>>
>> *My axis.xml I have un comment these following stuffs .*
>>
>> <transportReceiver name="mailto"
>> class="org.apache.axis2.transport.mail.MailTransportListener">
>>         <!-- configure any optional POP3/IMAP properties
>>         check com.sun.mail.pop3 and com.sun.mail.imap package
>> documentation for more details-->
>>     </transportReceiver>
>>
>>  <transportSender name="mailto"
>> class="org.apache.axis2.transport.mail.MailTransportSender">
>>         <parameter name="mail.smtp.host">smtp.gmail.com</parameter>
>>         <parameter name="mail.smtp.port">587</parameter>
>>         <parameter name="mail.smtp.starttls.enable">true</parameter>
>>         <parameter name="mail.smtp.auth">true</parameter>
>>         <parameter name="mail.smtp.user">synapse.demo.0</parameter>
>>         <parameter name="mail.smtp.password">mailpassword</parameter>
>>         <parameter name="mail.smtp.from">[email protected]
>> </parameter>
>>     </transportSender>
>>
>> *and re run my sample as *
>> ./wso2esb-samples.sh sn 4
>>
>> *Then I run the sample as with errors on MSFT *
>> ant stockquote -Daddurl=
>> http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=
>> http://localhost:8280/ -Dsymbol=*MSFT*
>>
>>
>> *This is my proxy service *
>> <?xml version="1.0" encoding="UTF-8"?>
>> <sequence name="main" xmlns="http://ws.apache.org/ns/synapse";>
>>     <in>
>>         <switch source="//m0:getQuote/m0:request/m0:symbol"
>>             xmlns:m0="http://services.samples"; xmlns:ns="
>> http://org.apache.synapse/xsd";>
>>             <case regex="IBM">
>>                 <send>
>>                     <endpoint>
>>                         <address uri="
>> http://localhost:9000/services/SimpleStockQuoteService"/>
>>                     </endpoint>
>>                 </send>
>>             </case>
>>             <case regex="MSFT">
>>                 *<send>*
>> *                    <endpoint key="bogus"/>*
>> *                </send>*
>> *                <property name="Subject" scope="transport" value="An
>> Error Occurred in the ESB"/>*
>> *                <property name="OUT_ONLY" value="true"/>*
>> *                <send>*
>> *                    <endpoint>*
>> *                        <address uri="mailto:[email protected]
>> <[email protected]>"/>*
>> *                    </endpoint>*
>> *                </send>*
>>             </case>
>>             <case regex="SUN">
>>                 <sequence key="sunSequence"/>
>>             </case>
>>         </switch>
>>         <drop/>
>>     </in>
>>     <out>
>>         <send/>
>>     </out>
>> </sequence>
>>
>>
>> I feel all configurations and settings are fine. But what the thing block
>> me to deliver the mail.
>>
>> Thank you
>>
>>
>> --
>> Nifras Ismail
>> Associate Software Engineer
>> WSO2
>> Email : [email protected]
>> Mobile : 0094 77 89 90 300
>>
>
>
>
> --
> Nifras Ismail
> Associate Software Engineer
> WSO2
> Email : [email protected]
> Mobile : 0094 77 89 90 300
>



-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
Platform Extension Team
WSO2 Inc. <http://wso2.com/>
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | [email protected]
LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger
<http://wso2experience.blogspot.com/> | WSO2 Profile
<http://wso2.com/about/team/mohammer-rajjaz/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to