Skip to main content

alphaWorks  >  Forums  >  Lotus Notes Command Line Email Client  >  developerWorks

Files of more than 20KB are not sent as email body    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 3 - Pages: 1 - Last Post: Oct 23, 2009 3:37 AM Last Post By: SamiSalkosuo Threads: [ Previous | Next ]
slohchab

Posts: 1
Registered: Oct 06, 2009 10:28:11 AM
Files of more than 20KB are not sent as email body
Posted: Oct 06, 2009 10:31:43 AM
 
Click to report abuse...   Click to reply to this thread Reply
I am trying to send the mails to different users and have a set of random files generated using openssl. Now I am trying to add the file contents as the email body. Files of 20KB or less are sent in the email body, but files with size more than 20KB are not being sent. The mails are sent with empty body.

Has anybody tried this or has any clue why is it so?
SamiSalkosuo

Posts: 26
Registered: Aug 02, 2005 06:44:57 AM
Re: Files of more than 20KB are not sent as email body
Posted: Oct 15, 2009 01:59:25 AM   in response to: slohchab in response to: slohchab's post
 
Click to report abuse...   Click to reply to this thread Reply
I replicated the issue but in my environment the limit was 32k and not 20k.
Interesting...

I investigate it further.
SamiSalkosuo

Posts: 26
Registered: Aug 02, 2005 06:44:57 AM
Re: Files of more than 20KB are not sent as email body
Posted: Oct 20, 2009 04:44:59 AM   in response to: SamiSalkosuo in response to: SamiSalkosuo's post
 
Click to report abuse...   Click to reply to this thread Reply
I investigated and it seems it is an issue with Notes. I modified the code to call save() method and I got following error when sending 32k message
Exception in thread "Thread-0" Traceback (innermost last):
(no code object) at line 0
at lotus.domino.local.Document.Nsend(Native Method)
at lotus.domino.local.Document.send(Unknown Source)
at lotus.domino.local.Document.send(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

lotus.domino.NotesException: NotesException: Notes error: Field is too large (32
K) or View's column & selection formulas are too large

IBM support pages have info about this:
http://www-01.ibm.com/support/docview.wss?rs=475&context=SSKTWP&uid=swg21087474&loc=en_US&cs=utf-8&lang=en.

Workaround for this seems to be to change body data type to from Text to Rich Text.
I will test it and if it works I publish steps to correct the problem to NotesCLI space.
SamiSalkosuo

Posts: 26
Registered: Aug 02, 2005 06:44:57 AM
Re: Files of more than 20KB are not sent as email body
Posted: Oct 23, 2009 03:37:45 AM   in response to: SamiSalkosuo in response to: SamiSalkosuo's post
 
Click to report abuse...   Click to reply to this thread Reply
I changed the body as RichTextItem type and tested and it seems to work.

Please see NotesCLI space for instructions how to fix the bug.

Point your RSS reader here for a feed of the latest messages in all forums