Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp related

 
Vivek Kumar Upadhyay
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic