I've used the mailer taglib before (actually this app started out as one
large jsp using the mailer taglib).

I still needed to stuff all of my html into a String (or StringBuffer
... thanks for the tip) and then use that string in the taglib ... like
this...

Oh dammit ...

I just realized I never had to do that ... 

I can put whatever I want in between <mailer:message></mailer:message>

Duh ... 

Chalk it up to beginners ignorance (I spend most of my time doing Linux
stuff ... not Java)...


On Thu, 2002-04-25 at 10:03, Eddie Bush wrote:
> Suggestion:  Be sure to use a StringBuffer for your appends - it sounds like
> you're using a lot of '+', which can hinder performance a great deal.
> 
> So far as sending HTML mail goes, I use the mailer taglib.  I'm not sure I
> understand your problem entirely, but the mailer taglib lets your send mail
> easy as pie!
> 
> http://jakarta.apache.org/taglibs/doc/mailer-doc/intro.html
> 
> If nothing else, it's a good plug for other useful Apache technology =)
> 
> HTH,
> 
> Eddie
> 
> 
> ----- Original Message -----
> From: "Edward Muller" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 24, 2002 8:13 PM
> Subject: [Somewhat OT] Sending HTML email using struts/java/javamail
> 
> 
> > I have an internal application that needs to send a html email
> > (management choice, not mine). The application is a mini struts
> > application, but I need to manually format the html email using a large
> > string and constantly appending to it and then I send the email via
> > javamail.
> >
> > Does anyone know of a better way?
> >
> > I'd like to just pass my form bean to another jsp, get the results back
> > (formatted as HTML) and then use javamail to send the email...
> >
> >
> > --
> > --------------------------------------------------
> > 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]>
-- 
--------------------------------------------------
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]>

Reply via email to