Dan Klco created SLING-7974:
-------------------------------

             Summary: CMS - Core - Can't Send Email
                 Key: SLING-7974
                 URL: https://issues.apache.org/jira/browse/SLING-7974
             Project: Sling
          Issue Type: Bug
    Affects Versions: App CMS 0.10.0
            Reporter: Dan Klco
            Assignee: Dan Klco
             Fix For: App CMS 0.10.2


Previously I was able to use Commons Email to send emails via Apache Sling, but 
after updating to new JRE support, I'm running into the following exception 
when attempting to send emails:
org.apache.commons.mail.EmailException: Sending the email to the following 
server failed : [smtp.sendgrid.net:2525|http://smtp.sendgrid.net:2525/] at 
org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469) 
[org.apache.commons.email:1.5.0] at 
org.apache.commons.mail.Email.send(Email.java:1496) 
[org.apache.commons.email:1.5.0] at 
org.adobecommunity.site.impl.jobs.EmailQueueConsumer.process(EmailQueueConsumer.java:113)
 [org.adobecommunity.site:1.0.0.SNAPSHOT] at 
org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502)
 [org.apache.sling.event:4.2.12] at 
org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:293)
 [org.apache.sling.event:4.2.12] at 
org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60)
 [org.apache.sling.event:4.2.12] at 
org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:229)
 [org.apache.sling.event:4.2.12] at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748) Caused by: 
javax.mail.MessagingException: IOException while sending message at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1167) 
[javax.mail:1.5.0.b01] at javax.mail.Transport.send0(Transport.java:254) 
[javax.mail:1.5.0.b01] at javax.mail.Transport.send(Transport.java:124) 
[javax.mail:1.5.0.b01] at 
org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459) 
[org.apache.commons.email:1.5.0] ... 9 common frames omitted Caused by: 
javax.activation.UnsupportedDataTypeException: text/plain; charset=us-ascii at 
javax.activation.DataHandler.writeTo(DataHandler.java:78) 
[org.apache.geronimo.specs.geronimo-activation_1.1_spec:1.1.0] at 
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1574) 
[javax.mail:1.5.0.b01] at 
javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1840) 
[javax.mail:1.5.0.b01] at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1119) 
[javax.mail:1.5.0.b01] ... 12 common frames omitted
 
This is due to including the Geronimo Specs Activation as indicated by 
[~karlpauls]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to