开发者

How can I get Lotus Domino to accept javamail attachments

开发者 https://www.devze.com 2023-02-10 04:29 出处:网络
I am working on some Java code that implements an \'email log file to support\' button. The code Discovers the relevant log files on the client side

I am working on some Java code that implements an 'email log file to support' button.

The code

  • Discovers the relevant log files on the client side
  • Encodes them using ISO-8859-1
  • Deflates them
  • Emails them

I am running j2se1.6, geronimo-javamail_1.4_spec, geronimo-activation_1.1_spec.

I am talking to a Lotus Domino mail server, and my users have Outlook as their mail client.

I am following this code http://www.jguru.com/faq/view.jsp?E开发者_运维百科ID=30251

I create the mail message as MimeMultipart, I use ByteArrayDataSource() with a mimetype of 'application/zip'.

However when I view the email in Outlook, i see a load of inline base64 in the email message, like this;

Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit

Log files ------=_Part_0_14247437.1297692975078 Content-Type: application/zip Content-Transfer-Encoding: base64

UEsDBBQACAAIAAdyTj4AAAAAAAAAAAAAAAALAAAAbG9nIGVudHJpZXPsvWmT20aysPv5OGL+A965 E+/1zCUp1IJNshyjpSXrHGs5Uns8cyyHg02iW7TYZA8XLcfh/36zAJBEkQCYCQLdTTk1I6urUZWV qDXzSRTQ7Tb6509fffv99MJ5E8/no+nkrvNkNhr2P3ecJ/HZbNmffXaE6DjSFcIR8q4I77qu8+q5 8/T5KRR883m+iC+dZ5Pz6V3nT185zqvZdLgcLJx/xDMjzVn9ue/8MBk978/exzOT7eVVPOsvRhOo ... trimmed for brevity

but I was hoping to see an attachment icon that I could click on.

Has anyone out there got this working properly? Got any suggestions?

Thanks alot


I think you might be missing a

messageBodyPart.setDisposition(Part.ATTACHMENT);
0

精彩评论

暂无评论...
验证码 换一张
取 消