Top "Jakarta-mail" questions

A Java API to send and receive emails.

How to resolve javax.mail.AuthenticationFailedException issue?

I am doing a sendMail Servlet with JavaMail. I have javax.mail.AuthenticationFailedException on my output. Can anyone please help …

java jakarta-mail smtp-auth
Using JavaMail with TLS

I found several other questions on SO regarding the JavaMail API and sending mail through an SMTP server, but none …

java smtp jakarta-mail ssl
Using Javamail to connect to Gmail smtp server ignores specified port and tries to use 25

I'm trying to use javamail in a groovy script to send out an email via gmail. I've looked many places …

java groovy smtp gmail jakarta-mail
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25

I am getting issue while sending email. javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not …

java jakarta-mail tomcat5.5
How to set MimeBodyPart ContentType to "text/html"?

The program below shows an unexpected return value for HTML multipart mime type. Why does this program print "text/plain" …

java mime jakarta-mail mime-types
java.lang.NoClassDefFoundError: javax/mail/Authenticator, whats wrong?

Send to Email.java package helper; //Mail.java - smtp sending starttls (ssl) authentication enabled //1.Open a new Java class …

java jakarta-mail
Illegal access: this web application instance has been stopped already

I have a class which has an init-method defined in xml <bean id="appStarter" class="com.myapp.myClass" init-method="…

java multithreading tomcat jakarta-ee jakarta-mail
javax.mail.AuthenticationFailedException: failed to connect, no password specified?

This program attempts to send e-mail but throws a run time exception: javax.mail.AuthenticationFailedException: failed to connect, no password …

java smtp gmail jakarta-mail
Getting mail from GMail into Java application using IMAP

I want to access messages in Gmail from a Java application using JavaMail and IMAP. Why am I getting a …

java gmail jakarta-mail imap
How to attach multiple files to an email using JavaMail?

The following Java code is used to attach a file to an email. I want to send multiple files attachments …

java jakarta-mail