File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Java Mail API Beginner Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Mail API Beginner Question" Watch "Java Mail API Beginner Question" New topic

Java Mail API Beginner Question

Rajasekhar Kintali

Joined: May 08, 2011
Posts: 3
hi folks,

I am a beginner to Java Mail API.

Just got to know sending mails from java code using mail API by specifying smtp host, port, from and to mail addresses and giving my authentication credentials.

I am curious to know following concepts:

1) Depending on my business logic in my enterprise application, want to send mail to my customer (auto generated replies via email). For this, do I need to create an emailProfile for my application server to give this email address as "from" when sending email using mail API?

2) could you please share useful links where I can find more documentation on mailing concepts and useful tips?

Many Thanks,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
#1: Not sure what you mean by "profile", but you will need to create an account with that address.

#2: The JavaEnterpriseEditionFaq points to much useful material regarding JavaMail.
Rajasekhar Kintali

Joined: May 08, 2011
Posts: 3
hi Dittmer,

Thanks for the reply!

#1: 'emailProfile' - I mean to say 'do we need to have an email account for application server to send mails using mailAPI'.

#2: Thanks for the links, m going through them

Many Thanks,
I agree. Here's the link:
subject: Java Mail API Beginner Question
jQuery in Action, 3rd edition