Questions tagged [javax.activation]

21 questions
0
votes
1 answer

Java Mail API - Datasource from URL - getting error

Am integrating JavaMailAPI in my webapplication. I have to embed images in the html body. Am trying to get the images from the src/main/resource directory instead of hard code the image path. Please find the below code that am trying. ClassLoader…
Karthikeyan
  • 1,927
  • 6
  • 44
  • 109
0
votes
1 answer

Java Mail API - Datasource from FileInputStream

Am integrating JavaMailAPI in my webapplication. I have to embed images in the html body. How do i get the images from the src/main/resource directory instead of hard code the image path. Please find the below code that i have hard coded the image…
Karthikeyan
  • 1,927
  • 6
  • 44
  • 109
0
votes
1 answer

unable to send both text message and attached file

I am unable to send message after adding document file. After adding msg.setFileName() in code msg.setText() is not working. Message is being successfully deliver with attached file but no text is message body. unable to send both text message and…
user4768611
0
votes
1 answer

SMTP error code : 551

com.sun.mail.smtp.SMTPSendFailedException: 551 This mail server requires authentication before sending mail from a locally hosted domain. Please reconfigure your mail client to authenticate before sending mail. I am getting the error above when I…
rvd
  • 1
  • 6
0
votes
1 answer

dataContentHandler member variable being overwritten in javax.activation.DataHandler.getDataContentHandler?

The code below is for javax.activation.DataHandler.getDataContentHandler, 1.41, 07/05/14. If the dataContentHandler member variable is null when the method is called, then it gets set by the 'if' clause at [1] (which is what happens in my program).…
Damian Helme
  • 1,060
  • 2
  • 10
  • 22
0
votes
1 answer

embedded glassfish - activation.jar

I need to use javax.activation to get the mimetype of files. I am running embedded glassfish and added the activation jar to the maven plugin as a dependency; however, it is still returning application/octet-stream which indicates to me that the…
Walter
  • 1,290
  • 2
  • 21
  • 46
1
2