Questions tagged [javax.mail.address]

Questions about javax.mail.address class.

9 questions
2
votes
0 answers

A1 NO AUTHENTICATE failed for outlook by using access token

we are trying to login outlook.com in our app by using oauth2.0, we have done the registration of app AAD. App authenticates the user successfully and responds with the access_token, now further we wanted to read the emails from imap server and here…
1
vote
0 answers

How to process each part from multipart response in Java from javax.mail.internet.MimeMultipart API

ByteArrayDataSource datasource = new ByteArrayDataSource(in, "multipart/form-data"); MimeMultipart multipart = new MimeMultipart(datasource); int count = multipart.getCount(); log.debug("count " + count); for (int i = 0; i < count; i++) { …
1
vote
0 answers

Email not sending java.xml spring-mvc

I'm trying to send email trought the contact me form but IS NOT SENDING I REALLY NEED HELP, I DON'T GET ANY ERROR BUT THE EMAIL IS NOT SENDING. I was tried several times I don't know where the problem is, I'm not getting any error, CONSOLE…
Demba
  • 21
  • 2
1
vote
0 answers

android: mails not sent when minify is true

trying to use javax.mail package. When minify is false, mails are sent. when minify is true, mails are not sent. This is the AsyncTask doinbackground. When minify is true, exception message is "smtp". 2021-03-31 14:52:35.196 26564-26652/? W:…
Maor Cohen
  • 936
  • 2
  • 18
  • 33
0
votes
0 answers

How to fix javax.mail.AuthenticationFailedException (Android Studio)

I am meeting a problem like what I just said in the title: javax.mail.AuthenticationFailedException. I will like to use java.mail I tried to find the solution on the internet but seems dosen't work. I have just used smtper.net and just showed "SMTP…
Jeff Li
  • 3
  • 1
0
votes
0 answers

Java MimeBodyPart to byte[]

I am using Java 11. I am reading emails and retrieving their attachments using javax.mail and would like to save the attachments byte array. So I need to convert a javax.mail.internet.MimeBodyPart (the attachment) to a byte[]. code so far: private…
Richard
  • 8,193
  • 28
  • 107
  • 228
0
votes
1 answer

Getting Error while sending mail from Localhost using JSP

After hours of googling I got the code for sending email from JSP page from tutorialpoints web site, I tried this entire code as mentioned in the tutorial also added recommended jar files. But after every setting with actual email id like this - //…
cbsecommerce
  • 47
  • 1
  • 6
0
votes
1 answer

javax.mail.getValidSentAddresses()

I updated my code: 1) I added the following properties: Properties props=new Properties(); props.put(smtp,host); props.put("mail.smtp.reportsuccess","true"); props.put("mail.smtp.sendpartial", "true"); Then written…
Raakh
  • 67
  • 2
  • 3
  • 12
0
votes
3 answers

NoClassDefFoundError when I call the class through commnad line

I am writing a simple class to send email, so there are external JARs required. What I did was I added the External JARS in eclipse project. It is working. But when I call the class from command line it gives…
Moon
  • 19,518
  • 56
  • 138
  • 200