struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pducuron \(kgb\)" <pducu...@pducuron.kgbinternet.com>
Subject Re: [Somewhat OT] Sending HTML email using struts/java/javamail
Date Thu, 25 Apr 2002 21:45:14 GMT
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" <emuller@learningpatterns.com>
To: "Rick Reumann" <maillist@reumann.net>
Cc: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
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:maillist@reumann.net
> >
> > "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:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
> --
> --------------------------------------------------
> Edward Muller - Director of Information Services
> LearningPatterns.com Inc.
>
> Mobile: 973.715.0230
>    NYC: 212.487.9064 x115
>
> Email/Jabber: emuller@learningpatterns.com
>
> http://www.learningpatterns.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message