File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp related" Watch "jsp related" New topic
Author

jsp related

Vivek Kumar Upadhyay
Greenhorn

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...
Bye
Vivek
Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336
Hi,

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 : http://www.jsptut.com/Email.jsp
Bimal Patel
Ranch Hand

Joined: Aug 29, 2003
Posts: 130
Hi,

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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp related
 
Similar Threads
How to send E Mail by use of JSP coding
Web Project - need volunteers
E-mailing functionality in Java
Certification Results Are In!!! How did you do???
Problem with validation 'required' attributes