Top "Jakarta-mail" questions

A Java API to send and receive emails.

Exception in sending emails from java application : Relaying denied

We are using Spring Mail to send emails from java application org.springframework.mail.javamail.JavaMailSenderImpl Spring Email Configuration is &…

java spring smtp jakarta-mail emailrelay
How to set content type for emails sent using spring's JavaMailSenderImpl

question is from subject. I'm using JavaMailSenderImpl from spring 3.0.3.RELEASE and velocity 1.6.4 for mail preparation from template. When I send …

spring email jakarta-mail velocity
com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender

i am trying to send email from an application email (exchange server) and appear for the user as it was …

java smtp jakarta-mail exchange-server
How do I test the JavaMailSender of Spring

I have a service that has injected the JavaMailSender. My service configures it and sends a mail. I'd like to …

java spring jakarta-ee character-encoding jakarta-mail
JavaMail IMAP over SSL quite slow - Bulk fetching multiple messages

I am currently trying to use JavaMail to get emails from IMAP servers (Gmail and others). Basically, my code works: …

java ssl imap jakarta-mail
Spring JavaMailSenderImpl is not working with SSL

Simple Java Mail client is working fine with an email server running on SSL. But the same server is not …

spring ssl jakarta-mail
Validate smtp server credentials using java without actually sending mail

To verify smtp server credentials shall I use transport.connect()? Session session = Session.getInstance(properties,authenticator); Transport tr=session.getTransport("…

java jakarta-mail smtp-auth
DCH class error with JavaMail

I'm attempting to set up a simple logging test with JavaMail in Java EE 6, using the jar files provided with …

logging glassfish jakarta-mail java-ee-6
IMAP access to mail office 365 with javamail

I'm trying to read the emails in a folder of an email account Office365 using JavaMail 1.4 api. My code is: …

java jakarta-mail office365 java-5
Getting "MessagingException: Could not convert socket to TLS" when sending mail via SMTP

When using JavaMail to send a message via SMTP (+STARTTLS) the following exception is raised: javax.mail.MessagingException: Could not …

java smtp jakarta-mail starttls