Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending mail

 
Pradeep Nair C
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to send mail to my friend having hotmail account using jsp code. is it possible using jsp or it required other things?
 
sameera kocharekar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
u need to have a SMTP server
and there are different packages which u can use
sun.net.smtp.SmtpClient
or u can use javamail
these two i know of
both these i have used in my code
there may be others
so u need to descide..
Sam
 
James Moore
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some mail servers have a "Drop" directory where you can create a file with the SMTP headers and the email body. The mail server simply scans the drop directory on a schedule and sends the mails out.
If you did this it would simply be a case of file I/O.
Regards
James
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic