Questions tagged as 'javamail'

1
answer

Exception being thrown when using the Commons-email API

I'm trying to use the Commons-Email API as an alternative to known JavaMail to send emails in Java but there is a problem. The following Exception is being released:    Exception in thread "main" java.lang.NoClassDefFoundError...
asked by 06.11.2014 / 16:25
0
answers

error invalid provider javaMail

Hello, I'm trying to capture emails using javaMail. It has 2 classes one sends the email and the other one does the capture, the class that sends email is ready and working, but the one that does this capture, an exception "invalid provider" app...
asked by 15.05.2018 / 16:25
1
answer

Error using JavaMail with Office365 account

I have a Java class that works perfectly for sending emails through a Gmail account. However, even using the recommended settings to send an SMTP email with Office365, an error is returned. The error is as follows:    exception javax.servl...
asked by 31.05.2015 / 17:41
1
answer

Doubt JavaMail - Attachments coming null

I have an application that downloads the attachments that are sent in a certain email and works perfectly. There was a need to do the same thing in another email. Both are gmail. However, when I read the inbox of the second email, all atta...
asked by 23.10.2018 / 02:47
1
answer

Send login and password in JavaMail email

I'm developing a web application using jsp and servlet and I would like it when sending the email it passes an image and the login and password but the email only send the image and does not send the login and password. / p> Image with error...
asked by 11.01.2018 / 02:53
1
answer

Email with JavaMail copy

I have a system that sends email, it works normally, I want to insert a field to send copy of the email, a CC or CCo. here's a snippet of my code below. Entity private String destino; private String titulo; private String mensagem; M...
asked by 16.05.2017 / 13:07
1
answer

Email Sending via Proxy - JavaMail

This is my code: (UPDATED 2) I UPDATED THE CONFIG OF MY ACCOUNT. Allow access by external apps and it worked !!! PS: but I had to make the suggested changes too. So I marked the answer below as correct! MAIN CALLING METHOD: package Tud...
asked by 07.05.2015 / 16:23
1
answer

javax.net.ssl.SSLException when sending mail using JavaMail

Good morning. I'm having trouble sending an email using JavaMail. Returns the following exception:    (javax.mail.SendFailedException) javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.MessagingException...
asked by 06.09.2018 / 14:14
1
answer

CommonsMail JavaMail - Failed to send email

I'm trying to send email using google's smtp with the CommonsMail lib in a web application, but it's always causing a flaw. I made a separate app and tested several settings, which I've been seeing on a number of other topics. Using port 465...
asked by 22.05.2018 / 23:42
0
answers

capture subject and sender with javaMail

Hello I need to capture the subject and the sender of incoming emails using javaMail. I read the api documentation but it was not very clear how to do it.     
asked by 11.05.2018 / 17:18