• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

how to send an email in jsp

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 349
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What have you tried so far?
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic