DataCollab
asked on
Problem with cfmailparam and blanks in file name
Using cfmailparam to send a file attachment, it works fine if the file name has spaces in it. It doesn't send the email if the file name does have spaces in it. I'm using the following code:
<cfif len(#document#) GT 0><cfmailparam file="#documentURL##URLEnc odedFormat (document) #"></cfif>
<cfif len(#document#) GT 0><cfmailparam file="#documentURL##URLEnc
First, did you try it without the URLEncodedFormat() function to see if it works? URLEncodedFormat is usually used for URL's only.
ASKER
Yes, I did.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> Try #Expanpath('')#
Typo correction. I think they meant ExpandPath().
Typo correction. I think they meant ExpandPath().
ASKER
Using the physical file path works, thanks all!!!