you only use setter-methods
for clazz Email / simpleEmail
and so one...
see:
SimpleEmail email = new SimpleEmail();
email.setHostName("mail.myserver.com");
email.addTo("[EMAIL PROTECTED]", "John Doe");
email.setFrom("[EMAIL PROTECTED]", "Me");
email.setSubject("Test message");
email.setMsg("This is a simple test of commons-email");
email.send();
no painfull
Storage and so on ... :-)
it is easy... more than easy
Regards,
Matthias
> -----Original Message-----
> From: HG [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 2:26 PM
> To: Struts Users Mailing List
> Subject: Re: PDF & Email
>
>
> Hi Chris
>
> Can't recall from my memroy how to do it, and I don't have
> access to the source from my current location, sorry.
>
> No one says, you should use JavaMail as is.
> The mail library referred to by Matthias seems to be
> great...and as far as I can see it uses the Java Mail API
> also....but greatly simplifies the act of doing E-mails...The
> Java Mail API can be very cumbersome....
>
> HTH
>
> Henrik
>
> ----- Original Message -----
> From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, September 02, 2004 2:09 PM
> Subject: RE: PDF & Email
>
>
> > Have any code snippets you could share on how to pass the generated
> > PDF to javamail as an attachment. That would greatly expedite my
> > coding
> efforts...
> >
> >
> > TIA
> > Chris
> >
> > -----Original Message-----
> > From: HG [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 02, 2004 8:14 AM
> > To: Struts Users Mailing List
> > Subject: Re: PDF & Email
> >
> >
> > Hi Chris
> >
> > I used iText (http://www.lowagie.com/iText/) in the past to
> generate
> > the
> PDF
> > and then JavaMail API to send it as an attachment. Works great..
> >
> > Regards
> >
> > Henrik
> >
> >
> > ----- Original Message -----
> > From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, September 02, 2004 1:59 PM
> > Subject: PDF & Email
> >
> >
> > > I need to generate an email along with a PDF within a java struts
> > > action
> > and
> > > send that email with the PDF attachment using java mail.
> Can anyone
> > > recommend a great PDF package that I can do this and
> render the PDF
> > > as an email attachment in realtime?
> > >
> > > _______________________________________________________
> > > Chris Cranford
> > > Programmer/Developer
> > > SETECH Inc. & Companies
> > > 6302 Fairview Rd, Suite 201
> > > Charlotte, NC 28210
> > > Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042
> > > Email: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > 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]
> >
>
>
> ---------------------------------------------------------------------
> 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]