• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to send an email in jsp

 
firstName SecondName
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am developing an application in j2me and i want send email.
i need suggestions about sending email through servlets.
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried so far?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your subject says JSP, but your message says servlets. Which is it?

In any case, the answer is neither. Mails is sent with the JavaMail API. I've moved this post accordingly.
 
firstName SecondName
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ananth Chellathurai wrote:What have you tried so far?

I got code from internet which is sending email and its called servlets because i am j2me programmer and never did any thing in jsp or servlets so this is my first time i need to do something in jsp side.
we can't send an email in j2me ,either we need to use that mobile api or we need to use SMTP .
I want to use smtp server one.
suggestions please!
thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The http://faq.javaranch.com/java/JavaEnterpriseEditionFaq points to much useful information about JavaMail, including an introduction and an extensive tutorial with many code examples. Note that something like this should never be done in a JSP; use a servlet instead.
 
Frank Eichfelder
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you really want to send a mail in a j2me-application, you can find a good introduction here.
But I still don't understand why you ask for jsp and servlets in the context of j2me. This only makes sense, when your j2me-application doesn't send the mail itself but calls a servlet which sends a mail via JavaMail. If this is the case, you really should consult the documentation Ulf mentioned.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic