File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes please send me code 4 email through servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "please send me code 4 email through servlets" Watch "please send me code 4 email through servlets" New topic
Author

please send me code 4 email through servlets

kapur rishi
Greenhorn

Joined: Mar 04, 2001
Posts: 2
i will be very greatful to you
rishi
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1952
mail code has nothing to do with your servlet. It will work anyway.
Here is a simple example code:
http://www.webappcabaret.com/javachina/faq/a_01.htm#mail_Q1
Thanks!
Roseanne
Join our SCJD Study Group at http://www.developergroup.org/

[This message has been edited by Roseanne Zhang (edited September 08, 2001).]
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1952
BTW, you might need change "mail.localdomain.com" to localhost on your unix server.
Roseanne
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
Using email from a servlet is no different to using email from any other Java code. The best place to discuss the Java Mail API at the Java Ranch is the "Other Java APIs" forum, so I've moved this post.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1952
The SCJD Study Group is moving to http://www.developergroup.org/
 
 
subject: please send me code 4 email through servlets
 
MyEclipse, The Clear Choice