Would this be an option ? :
 - write your html file with hidden tags
- parse the html and replace the hidden tags with your form fields
- send the message using javamail

Pablo.


----- Original Message -----
From: "Edward Muller" <[EMAIL PROTECTED]>
To: "Rick Reumann" <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, 25. April 2002 11:37
Subject: Re: [Somewhat OT] Sending HTML email using struts/java/javamail


> You still end up writing HTML in the servlet, which is what I want to
> avoid.
>
> On Thu, 2002-04-25 at 00:20, Rick Reumann wrote:
> > On Wednesday, April 24, 2002, 9:13:17 PM, Edward Muller wrote:
> >
> > EM> I have an internal application that needs to send a html email
> > EM> (management choice, not mine). The application is a mini struts
> > EM> application, but I need to manually format the html email using a
> > EM> large string and constantly appending to it and then I send the
> > EM> email via javamail.
> >
> > EM> Does anyone know of a better way?
> >
> >     I like to write the html page to a file. Then with the java.mail
> >     api you can send the file you created (something.html) as an
> >     attachment.
> >
> > EM> I'd like to just pass my form bean to another jsp, get the results
back
> > EM> (formatted as HTML) and then use javamail to send the email...
> >
> >
> >
> >
> >
> > --
> >
> > Rick
> >
> > mailto:[EMAIL PROTECTED]
> >
> > "As the light changed from red to green to yellow and back to red
> > again, I sat there thinking about life. Was it nothing more than a
> > bunch of honking and yelling? Sometimes it seemed that way."
> >   -Jack Handey
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> --
> --------------------------------------------------
> Edward Muller - Director of Information Services
> LearningPatterns.com Inc.
>
> Mobile: 973.715.0230
>    NYC: 212.487.9064 x115
>
> Email/Jabber: [EMAIL PROTECTED]
>
> http://www.learningpatterns.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to