[opencms-dev] help with CmsMail and addAttachment please

Steve Mato smato at icc.net
Tue Jun 14 23:33:08 CEST 2005


Hello,

I successfully wrote a JSP page to accept a POST that 
includes an uploaded file, and attached it to an e-mail 
and sent it on its way ; in large part with the assistance 
of search results from this mailing list's archives.  
Thank You!

I'm encounter a problem however.  The attachment is 
attached as in-line text, and is not being converted to a 
separate attached file when the e-mail client downloads it.  
I'm quite sure I know why, but don't know how to fix it.

Why:  When I receive the e-mail, the proper Content-Type 
mime header is added by CmsMail.  Example:

Content-Type: multipart/mixed; 
	boundary="----=_Part_4_10765042.1118782466820"


...HOWEVER, that boundary, in this case: 
----=_Part_4_10765042.1118782466820 
is not added by CmsMail between the body of the e-mail 
and the attachment.  Therefore it is not converted 
into a separate attached file.

...Is this a bug, or is there a way to accomplish attaching
a file with CmsMail and having a mail client convert it to
a separate attached file on download?  Is there some sort of
encoding I need to do on it, like UUEncoding?

I'm trying to attache a .DOC or .RTF.  
I'm using OpenCMS 5.0.1

Thank you very much for your time.
Steve Mato



::::
 :: Steve Mato
 :: Senior Systems Architect
 :: Internet Commerce Corporation
 :: 45 Research Way, East Setauket, NY  11733
:::: 
 :: mailto:smato at icc.net  
 :: http://www.icc.net  
 :: p: 631-590-1010 x5115
 :: f: 631-246-5677 
::::



More information about the opencms-dev mailing list