Top "Jakarta-mail" questions

A Java API to send and receive emails.

javamail mark gmail message as read

Note: added after answer: Thanks.. Yeah I had tried the Flag.SEEN to true and saveChanges.. I also had read …

java jakarta-mail
Java mail, set reply-to address not working

I wrote a small email sending program in java, it has from, to and reply-to address, when the client tries …

java jakarta-mail
How to handle multipart/alternative mail with JavaMail?

I wrote an application which gets all emails from an inbox, filters the emails which contain a specific string and …

java email jakarta-mail attachment multipart
Create an email object in java and save it to file

i need to backup the emails contained in a PST file (outlook storage). i'm using libpst which is the only …

java email jakarta-mail pst eml
java mail api : exception thrown saying java.lang.SecurityException: Access to default session denied

when im trying to send a mail using java mail api in my web application , I'm getting this exception. java.…

jakarta-mail
Retrieve UnRead Emails from Gmail - JavaMail API + IMAP

Now I have created a code to retrieve unread email and read its body and then we can store or …

gmail jakarta-mail imap
What should the mail.debug=true option of javax.mail do?

In the configuration properties of my javax.mail.Session I have set mail.debug=true, but for some reason, this …

java log4j jakarta-mail
Sending mail from yahoo id to other email ids using Javamail API

I am not able to send email from my yahoo id using Java mail API. I tried different options from …

java smtp jakarta-mail sendmail yahoo-mail
What is the difference between getDefaultInstance() and getInstance() in Session class?

What is the difference between Session.getDefaultInstance(props, authenticator) and getInstance(props, authenticator)? In general, when will you choose one …

java session jakarta-mail
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;

package jmail; import java.util.Date; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import javax.…

java ssl jakarta-mail exchange-server starttls