struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <maili...@matthias-wessendorf.de>
Subject RE: PDF & Email
Date Thu, 02 Sep 2004 12:21:10 GMT
you only use setter-methods
for clazz Email / simpleEmail
and so one...

see:

SimpleEmail email = new SimpleEmail();
email.setHostName("mail.myserver.com");
email.addTo("jdoe@somewhere.org", "John Doe");
email.setFrom("me@apache.org", "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:struts@nospam.websolver.dk] 
> 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" <chris.cranford@setechusa.com>
> To: "'Struts Users Mailing List'" <user@struts.apache.org>
> 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:struts@nospam.websolver.dk]
> > 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" <chris.cranford@setechusa.com>
> > To: <user@struts.apache.org>
> > 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: chris.cranford@setechusa.com
> > >
> > >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


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


Mime
View raw message