If this implantation can be reused in ESB as well (through a connector maybe?) it'll be grate. we need a way to configure email sending across the platform in a uniform way.
On Mon, Apr 27, 2015 at 12:14 PM, Kasun Bandara <[email protected]> wrote: > > Hi all, > > I'm in the middle of introducing HTML email support for the Email Output > Adapter in WSO2 CEP (This will be then installed as a feature in WSO2 IS). > This extension can be used as an addition to the existing text based email > templates. > > I was planning to implement this extension using the Apache Commons Email > Library [1] which is built on top of the Java Mail API. > > Below are some of the classes and the functionalists given by the Apache > Commons > > > - > > SimpleEmail - This class is used to send basic text based emails > - > > MultiPartEmail - This class is used to send multipart messages. This > allows a text message with attachments either inline or attached. > - HtmlEmail - This class is used to send HTML formatted emails. It has > all of the capabilities as MultiPartEmail allowing attachments to be easily > added. It also supports embedded images. > - ImageHtmlEmail - This class is used to send HTML formatted emails > with inline images. It has all of the capabilities as HtmlEmail but > transform all image references to inline images. > - EmailAttachment - This is a simple container class to allow for easy > handling of attachments. It is for use with instances of MultiPartEmail and > HtmlEmail. > > > Current CEP Email sending module works with compliance to the Axis2 Mail > Transport services and it uses OMElement object to set the payload of the > Email (Email Body) which is only compatible with setting "String > compatible objects" to the email body. > > Although under HtmlEmail class (comes under Apache Commons Email Library) > it returns a HTML compatible object which cannot be passed through to the > payload as per Axis2 Mail Transport definitions. > > Is there any methodology that i can use to enable predefined object types > (i.e Here it's HtmlEmail object) to send through the Axis2 Mail Transport > service. > > Suggestions and ideas for implementing this feature is highly welcome. > > Thanks & Regards, > > Kasun Bandara. > > > [1] https://commons.apache.org/proper/commons-email/ > > > > > > > > > > > > -- > Kasun Bandara > *Software Engineer* > Mobile : +94 (0) 718 338 360 > <%2B94%20%280%29%20773%20451194> > [email protected] <[email protected]> > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : [email protected]
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
