Hi: I've solved my problem of removing a space from a mail attachment file. In case anyone else can benefit from this, here goes: <!--- send.cfm ---> <!--- If this message has a file attachment... ---> <CFIF FORM.ATTACHFILE NEQ ""> <!--- ...save the file to the server... ---> <CFFILE ACTION="UPLOAD" FILEFIELD="AttachFile" DESTINATION="#AttachDir#" NAMECONFLICT="OVERWRITE"> <!--- clean any spaces and rename the file ---> <CFSET FILENAME = #FILE.SERVERFILE#> <CFSET DIRECTORY = #AttachDir#> <CFSET CLEANFILENAME = REPLACENOCASE(#FILENAME#," ","","ALL")> <CFFILE ACTION="Rename" SOURCE="#directory##filename#" DESTINATION="#directory##cleanfilename#"> <!--- ...and send the message with file attached... ---> <CFMAIL FROM="#Session.Email#" TO="#Form.To#" CC="#Form.cc#" SUBJECT="#Form.Subject#" SERVER="#Session.SMTPserver#" MIMEATTACH="#directory##cleanfilename#">#NewBody#</CFMAIL> <!--- ...otherwise... ---> <CFELSE> <!--- ...just send the text with no attachment. ---> <CFMAIL FROM="#Session.Email#" TO="#Form.To#" CC="#Form.cc#" SUBJECT="#Form.Subject#" SERVER="#Session.SMTPserver#">#NewBody#</CFMAIL> </CFIF> <CFLOCATION URL="messagelist.cfm" ADDTOKEN="NO"> Yvette Ingram ColdFusion Programmer HWG TA, ColdFusion 4 Email: [EMAIL PROTECTED] or [EMAIL PROTECTED] ICQ: 21200397 ------------------------------------------------------------------------------ Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

