• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending emails through your Java program?

 
Ranch Hand
Posts: 185
Netbeans IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am just wondering is there any developers in the know about how to send emails through a program. I have looked all over the place and it seems very complicated and that I have to learn the mail protocols. Any advice on where to start on even the simplest of programs that just emails a line of input text would be a help. I could go from there.

Thanks
 
Saloon Keeper
Posts: 7585
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need to learn lots about email protocols. The Java API for handling email is called JavaMail, and its home page is at http://www.oracle.com/technetwork/java/javamail/index.html. There's a very extensive FAQ with lots of example code as well. If you don't have a mail server which you can (or want to) use, check out Aspirin: https://github.com/masukomi/aspirin
 
reply
    Bookmark Topic Watch Topic
  • New Topic