LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-30-2010, 09:55 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 527

Rep: Reputation: 32
Javamail


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, 10:26 AM   #2
paulsm4
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:
http://www.mkyong.com/java/javamail-...-smtp-example/

SUGGESTION:
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:
http://mail.google.com/support/bin/a...n&answer=13287

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

'Hope that helps
 
  


Reply


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 09:06 AM
Javamail a7mlinux Linux - General 0 06-15-2009 04:22 AM


All times are GMT -5. The time now is 03:52 AM.

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