[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Multi part mime message in XSLT

Subject: Re: Multi part mime message in XSLT
From: "Senthilkumaravelan K" <skumaravelan@xxxxxxxxxxxxxx>
Date: Wed, 4 Jun 2008 10:38:10 -0700
Re:  Multi part mime message in XSLT
Hi ,
I am not going to invoke the SMTP commands from xslt, I would like to
apply xslt and get the mime message and write to socket using SMTP
data command.

My expected output ,have HTML and TEXT part .
Sending out mail ,use Java for it.

Hope
Thanks,
Senthil


On Wed, Jun 4, 2008 at 10:04 AM, Mukul Gandhi <gandhi.mukul@xxxxxxxxx> wrote:
> I am a little confused about the requirement. Do you want to send
> email from the XSLT stylesheet?
>
> It seems to me, you have some output from your stylesheet which you
> need to email to some address.
>
> To send an email from any environment, you need to send some specific
> SMTP commands to a SMTP host to a service listening to port 25. You
> cannot do this natively from the XSLT stylesheet, as in XSLT there is
> no mechanism (an instruction, or an API) to communicate to hosts via
> TCP/IP protocol. You can do this via say Java extension functions.
>
> Constructing a MIME multipart message by hand could be cumbersome, if
> for example there are attachments. You would need to understand the
> MIME format very well to send all kind of emails correctly.
>
> You can take an easy route by using Java mail API, if you are working
> in a Java environment. You can invoke Java mail functions from the
> stylesheet as extension functions.
>
> On 6/4/08, Senthilkumaravelan K <skumaravelan@xxxxxxxxxxxxxx> wrote:
>> Hi ,
>> Need to create a Multipart mime message to send a email from the system.
>> Am working on application,which takes xml and transforms into two
>> separate stylesheet , one to produce text and html output
>> from there am constructing mime message using Java.
>>
>> I need help here to convert my output as mime message so that I can
>> write to socket to generate email .
>>
>> Thanks,
>> Senthil
>
>
> --
> Regards,
> Mukul Gandhi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.