Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

please send me code 4 email through servlets  RSS feed

 
kapur rishi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i will be very greatful to you
rishi
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW, you might need change "mail.localdomain.com" to localhost on your unix server.
Roseanne
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The SCJD Study Group is moving to http://www.developergroup.org/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!