RE: Email with file created on the fly

2004-01-29 Thread Joe Hertz
I see an action that uses the JavaMail API in your future.

Nice little QuickStart article can be found here:

http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail-p1.html

 -Original Message-
 From: hhlow [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 29, 2004 9:41 PM
 To: Struts Users Mailing List
 Subject: Email with file created on the fly
 
 
 How can I send email with a file created on the fly using Struts?
  
 Thank you
 Clement
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



RE: Email with file created on the fly

2004-01-29 Thread Andrew Hill
1. Create the file
2. Email it
(duh!)

Struts is a web ui framework. It's not about email and all that, so its not
really a question of how to do it 'with struts', but more a case of *where*
to do it in a struts app - and that depends on when your sending the mail
(interactive or batch).

Go take a look at the JavaMail api if you want to know how to send an email.
If you have any issues with sending this mail that are related to struts
then come back and ask questions, but you will need to make more effort
posing your question than you have so far. I mean you havent even stated
what the scenario is. How do expect to get an intelligent response like
that?

Is the email sent as a result of a form that has been submitted or is it a
batch email sent at a set time or some kind of alert email that gets sent
when something happens in the system?

I suggest you read this before posting again:
http://www.catb.org/~esr/faqs/smart-questions.html

Now run along, or I shall scold you some more!


---
DISCLAIMER: The author of this email has recently reduced his nicotine
intake and disavows responsibility for any resultant irritability. If you
have received this scolding by mistake then I guess that just too bad. The
contents of this email are the authors own personal opinions and do not
necessarily reflect the opinions of his employer, nation, the entire human
race or sentient life throughout the known universe, though no doubt they
will all agree with the author if they ever happen to read his message.

-Original Message-
From: hhlow [mailto:[EMAIL PROTECTED]
Sent: Friday, 30 January 2004 10:41
To: Struts Users Mailing List
Subject: Email with file created on the fly


How can I send email with a file created on the fly using Struts?

Thank you
Clement



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



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



Re: Email with file created on the fly

2004-01-29 Thread Nadeem Bitar
You can use VelocityEmail or VelocityHtmlEmail which are part of
turbine.
http://jakarta.apache.org/turbine/turbine-2.3/apidocs/org/apache/
turbine/util/velocity/package-frame.html

Since these are the only classes that I use from turbine, I just removed
these along with commons-mail that is used by VelocityEmail and included
them in my project.
 



On Fri, 2004-01-30 at 10:40 +0800, hhlow wrote:
 How can I send email with a file created on the fly using Struts?
  
 Thank you
 Clement
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
***
Nadeem Bitar
Software Engineer
IzuCode, LLC
***


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