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/05/02 20:57:29 UTC

Re: Generate HTML e-mail within Struts

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