cfmail attachment problem
Posted on 2009-02-09
I am having problems with the cfmail on my page. Currently it works sometimes and other times it doesn't. It will sometimes send files with attachments and sometimes it will dump them to the undeliverable folder. I have checked the attachments and the attachments are valid and the ones that do work have the same kind of attachments.
What I have noticed and works, at least for me, is when I open the .txt file in the undeliverable folder and modify the file from:
file-type: application/octet-stream; name=filename
file: (filepath); file-type: application/octet-stream; name=filename; file-disposition: attachment; remove: false
Save it and then add back to the spool the file sends with no problem. If I don't make any changes and put it back into the spool the file goes back to undeliverable.
I have tried using cfmailparam instead of mimeattach but that yielded the same results.
File types that I have noticed are failing have been .doc and .pdf. I am mainly worried about the .doc files. I have tried specifying the type as application/msword and also leaving it application/octet-stream, both had the same result.
Is there a simple way of fixing this through code that I am just missing?