File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes jsp related Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp related" Watch "jsp related" New topic

jsp related

Vivek Kumar Upadhyay

Joined: Mar 06, 2006
Posts: 1
Hi everybody,

I want to e-mail a report that is generated in jsp to some e-mail id :how can i do this,pls help...
Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336

In order to send an email through your JSP, you should have authorization to your SMTP server.

You need to import these packages:

import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import javax.naming.*;

I can't send you the code. I am sorry for that and I hope you understand why.

Some more information here :
Bimal Patel
Ranch Hand

Joined: Aug 29, 2003
Posts: 130

He's trying to mention the java mail API. Sun has that as a saperate API and you can use it... again its "free".

Work Hard, Expect The Worst...<br /> <br />Bimal R. Patel<br />(SCJP 1.2, SCWCD 1.4)
I agree. Here's the link:
subject: jsp related
It's not a secret anymore!