://bijou.dyndns.org/weblog/computer/software/SendingMailFromJavaServlets
.html
or
http://tinyurl.com/5lukz
Enjoy.
-Original Message-
From: Graff, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 2:22 PM
To: 'Tomcat Users List'
Subject: RE: sending a JSP page by email
I had tried doing the same thing and failed.
But after I gained more knowledge I had a new idea that I did not tried yet.
I will be happy if you let me know if it works.
The basic Idea is that if we used a servelet we had no problem taking the
StringBuffer created and coping it into the mail
I *believe*, but don't hold me to it, that you can implement a filter
AFTER the JSP renders, in the latest servlet spec. With that, you
shouldn't have much trouble taking the output stream and sending it as an
eMail. I'd also assume, although I don't know for sure, that you could
basically kill
, 2004 2:22 PM
To: 'Tomcat Users List'
Subject: RE: sending a JSP page by email
Hey kids,
I had run into this a while back.
I've got a link here to what I did. It's rough and ready so don't expect
too much out of it, but it should be enough to get you runnning.
-Original Message-
From
I *believe*, but don't hold me to it, that you can implement a filter AFTER the
JSP renders, in the latest servlet spec. With that, you shouldn't have much
trouble taking the output stream and sending it as an eMail. I'd also assume,
although I don't know for sure, that you could basically
1:52 PM
To: [EMAIL PROTECTED]
Subject: RE: sending a JSP page by email
I *believe*, but don't hold me to it, that you can implement a filter AFTER
the JSP renders, in the latest servlet spec. With that, you shouldn't have
much trouble taking the output stream and sending it as an eMail. I'd
Here is what I use:
// here is a function from my MailUtils class
public boolean formSend(String to, String fromAddress, String
fromPersonal,
String msgSubject, PageContext pc, String templateURL) {
if (templateURL == null || templateURL.equals())