how to send mail from esb

heng005.hotmail.com's picture
Can i send an e-mail from WSO2 ESB with these requirements: 1. custom confingue subject 2. custom CC and BCC. Are there any example or how can i do?
indika's picture

Hi You can do . Please look

Hi You can do . Please look at Sample 256. It only set 'Subject' and with the same way (i.e using property mediator), you can set following. // transport / mail headers "Subject" "To" "From" "Cc" "Bcc" "Reply-To" "In-Reply-To" "Message-ID" "References" Thanks Indika
heng005.hotmail.com's picture

Thank you very much. i'm

Thank you very much. i'm going to try it
werdex86.yahoo.com's picture

Hi! I want to send SOAP

Hi! I want to forward SOAP request to mail. Not sure how sample 256 can solve my problem because it listens for MAIL messages and not for SOAP requests. Is there any way to forward soap request to mail? Maybe i need to move "header name="To" expression="fn:concat('mailto:'" to inSeuquence in http proxy?
rajika's picture

You just need to use a mail

You just need to use a mail endpoint. http://wso2.org/project/esb/java/3.0.0/docs/samples/transport_samples.html#Sample255 Spending some time on the samples index would help. Rajika
werdex86.yahoo.com's picture

Hi! Sorry, i skipped 255

Hi! Sorry, i skipped 255 sample because it was related to vfs transport. Now mail sending works fine. I need to modify content which goes to mail. Now mailendpoint sends the whole soapenv:Envelope as attachment. I want to compose human readable mail: extract some arguments from request,insert them to mail template and send this message. Is it possible to send non soap content using mail endpoint? Thx!
rajika's picture

This is not possible. When

This is not possible. When sending out the message using the mail transport your payload will pack into a SOAP envelope and it'll deliver as the email. Rajika
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)