You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dhruva B. Reddy" <sl...@yahoo.com> on 2003/04/15 23:51:03 UTC
Generate HTML e-mail within Struts
My application needs to send HTML formatted e-mail. As the contents of
the message may need to change often, I need to avoid hardcoding this.
Is there a way to write a JSP so that HTML content can be generated and
fed into an e-mail message through JavaMail?
Thanks,
Dhruva
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Generate HTML e-mail within Struts
Posted by Vernon <ve...@gatewaytech.com>.
I believe that you need to use XSLT to work the job for you.
On Tue, 15 Apr 2003 14:51:03 -0700 (PDT), Dhruva B. Reddy
<sl...@yahoo.com> wrote:
> My application needs to send HTML formatted e-mail. As the contents of
> the message may need to change often, I need to avoid hardcoding this.
>
> Is there a way to write a JSP so that HTML content can be generated and
> fed into an e-mail message through JavaMail?
>
> Thanks,
> Dhruva
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
Vernon
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Generate HTML e-mail within Struts
Posted by "Dhruva B. Reddy" <sl...@yahoo.com>.
This is what I ended up doing, and it works quite well.
Thanks for the response!
Dhruva
--- Tim Shadel <ti...@zserve.com> wrote:
> I tried something like that once, but the way I did it was kind of
> awkward. I made a new web request from within my Action to a URL
> that
> included the jsessionid to let my JSP use Struts. It just was messy,
>
> and it may even violate specs (I have no idea).
>
> We actually use Velocity for our e-mail templates (but not the rest
> of
> our site) and that's made it really easy to generate HTML e-mail from
>
> within an Action or EJB.
>
> Tim
>
> Dhruva B. Reddy wrote:
> > My application needs to send HTML formatted e-mail. As the
> contents of
> > the message may need to change often, I need to avoid hardcoding
> this.
> >
> > Is there a way to write a JSP so that HTML content can be generated
> and
> > fed into an e-mail message through JavaMail?
> >
> > Thanks,
> > Dhruva
> >
> > __________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo
> > http://search.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Generate HTML e-mail within Struts
Posted by Tim Shadel <ti...@zserve.com>.
I tried something like that once, but the way I did it was kind of
awkward. I made a new web request from within my Action to a URL that
included the jsessionid to let my JSP use Struts. It just was messy,
and it may even violate specs (I have no idea).
We actually use Velocity for our e-mail templates (but not the rest of
our site) and that's made it really easy to generate HTML e-mail from
within an Action or EJB.
Tim
Dhruva B. Reddy wrote:
> My application needs to send HTML formatted e-mail. As the contents of
> the message may need to change often, I need to avoid hardcoding this.
>
> Is there a way to write a JSP so that HTML content can be generated and
> fed into an e-mail message through JavaMail?
>
> Thanks,
> Dhruva
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org