Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-30-2010, 10:55 AM   #1
Registered: Oct 2005
Posts: 540

Rep: Reputation: 32

Was told that I need to use Javamail for a project to send mail rather than using "mail" or "mailx". Has anyone here done this? Any pointers or sites you've used and can recommend?
Old 11-30-2010, 11:26 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

No, you can use EITHER JavaMail OR do a "Runtime.exec ("mail ...");". Your choice

JavaMail is just an API - you need a real "mail agent" for it to talk to.

Here's a good link:

1. Set up a GMail account (for testing purposes)

2. Write the JavaMail "hello world" in the link above

3. Use these GMail SMTP parameters:

4. Once your test case works, apply it to your actual app.

'Hope that helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set mail.jar(JavaMail) and mysql-connector-java.jar in Linux class path Terry56 Linux - Software 3 01-19-2010 10:06 AM
Javamail a7mlinux Linux - General 0 06-15-2009 05:22 AM

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration