How can we attach files to an email?
|
Administrator
|
done in rev cbb94a7c7a9e
mail.luan
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture |
Did you try sending a JPG image?
This is what I get: javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type image/jpeg Java: in function 'smtp.send' site:/private/lib/Template:37: in function 'Template.sendMail' site:/submit.html:33: in function '<http>' Caused by: javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type image/jpeg at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1244) at javax.mail.Transport.send0(Transport.java:254) at javax.mail.Transport.send(Transport.java:124) at luan.modules.mail.SmtpCon.send(SmtpCon.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at luan.LuanJavaFunction$JavaMethod$1.invoke(LuanJavaFunction.java:558) at luan.LuanJavaFunction.doCall(LuanJavaFunction.java:87) at luan.LuanJavaFunction.call(LuanJavaFunction.java:72) at luan.LuanBit.call(LuanBit.java:38) at luan.impl.FnCall.call(FnCall.java:28) at luan.impl.FnCall.eval(FnCall.java:22) at luan.impl.ExpressionsStmt.eval(ExpressionsStmt.java:14) at luan.impl.Closure.call(Closure.java:66) at luan.impl.Closure.call(Closure.java:42) at luan.LuanBit.call(LuanBit.java:38) at luan.impl.FnCall.call(FnCall.java:28) at luan.impl.FnCall.eval(FnCall.java:22) at luan.impl.ExpressionsStmt.eval(ExpressionsStmt.java:14) at luan.impl.Block.eval(Block.java:22) at luan.impl.IfStmt.eval(IfStmt.java:22) at luan.impl.Block.eval(Block.java:22) at luan.impl.Closure.call(Closure.java:66) at luan.impl.Closure.call(Closure.java:42) at luan.LuanBit.call(LuanBit.java:38) at luan.LuanState.call(LuanState.java:143) at luan.LuanState.call(LuanState.java:135) at luan.modules.web.HttpServicer.service(HttpServicer.java:91) at luan.modules.web.LuanHandler.handle(LuanHandler.java:31) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745) Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type image/jpeg at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:896) at javax.activation.DataHandler.writeTo(DataHandler.java:317) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1608) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:961) at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:553) at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:889) at javax.activation.DataHandler.writeTo(DataHandler.java:317) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1608) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1849) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1196) ... 46 more |
Administrator
|
It works for me as of rev 17b02b56d806. I introduced a bug in the previous rev so I don't know if this fixes your problem. Please try it again.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture |
It works now. Please release luan to dropbox.
|
Administrator
|
done
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture |
Thanks, closing thread.
|
Free forum by Nabble | Edit this page |