CFMAIL Attachment
I have created a document library, when the user uploads a file a give it truly unique name using a UUID. Users can then email documents to other users etc. The problem is I don't want files name 00E13D334DFFDA1234.doc sent, it would be nice to have a friendly name for the file. Aside from doing a copy, rename, attach, mail and delete temp file is there anyway to rename this file on its way out? Thanks Brian ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222389 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Repost: Directory, download and cfmail attachment issues
Reposted because I just discovered on another list that posts made from the archives didn't show the contents of the post, and that might explain why my questions rarely get answered here! Hi all, We have just moved from Windows to Linux, and CF5 to MX.This move brought a whole host of unpleasant issues with it, mostly having to do with our download process. 1.Does anyone know of a really good zip tag that works with Linux?I loved Ben Forta's cfx_zip on Windows, but can't find one that robust for Linux.Specific problem:I can't find one that will unzip a specific file in an archive that has a zipped folder in it. 2.We store our design files in a non-browser-accessible directory, and then create a zip file in another temp non-accessible directory after purchase.I'm using cfdirectory to create this directory.Most of the time it works, but sometimes for no reason that is apparent to me, it doesn't.(Yeah, as I wrote this I realized that I needed to do a different thing with error handling here, so maybe next time it happens I will get a clue.)Meanwhile, does anyone know why this would happen?It can work sometimes for a particular user and not others. 3.When everything else has worked so far, and the customer's zip file has been created, they can choose download or email.I'm using CFHEADER NAME=Content-Disposition VALUE=attachment; StitcheryMall.zip CFCONTENT TYPE=application/x-zip-compressed FILE=#zipname# deletefile=yes for the download.In our testing, this worked acceptably.It does indeed download the proper file, and for all of our tests (except with Opera), the file ended with .zip.We have customers saying that they are getting .cfm or no extension.Any ideas? 4.When they select email, we use cfmail to=#user.email# from=#me# subject=Stitchery Mall Files spoolenable=no cfmailparam file=#zipname# type=application/x-zip-compressed blah blah blah /cfmail Spoolenable is no because the next thing that happens is that the file gets deleted, and if it is yes, half the time it gets deleted before the message gets sent.The problem here is also the file name.People are getting all sorts of things - and they have forwarded them to me.Generally it is a good file, but often with a .dat or no extension.Any clues here? 5.Some customers are reporting corrupted files.Could this be an issue with the zip tag, or is it more likely part of the download/email process?I suppose it could also simply be their way of reporting a bad file extension. I appreciate any help you can give me.I'm almost too busy sending out files to customers to actually fix anything! Carol Chandler [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Repost: Directory, download and cfmail attachment issues
Try cfx_zipman, it is in Java and should work on Linux. http://www.emerle.net/programming/cfx_zipman.cfm Matt -Original Message- From: Carol Chandler [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 10:41 AM To: CF-Talk Subject: Repost: Directory, download and cfmail attachment issues Reposted because I just discovered on another list that posts made from the archives didn't show the contents of the post, and that might explain why my questions rarely get answered here! Hi all, We have just moved from Windows to Linux, and CF5 to MX.This move brought a whole host of unpleasant issues with it, mostly having to do with our download process. 1.Does anyone know of a really good zip tag that works with Linux?I loved Ben Forta's cfx_zip on Windows, but can't find one that robust for Linux.Specific problem:I can't find one that will unzip a specific file in an archive that has a zipped folder in it. 2.We store our design files in a non-browser-accessible directory, and then create a zip file in another temp non-accessible directory after purchase.I'm using cfdirectory to create this directory.Most of the time it works, but sometimes for no reason that is apparent to me, it doesn't.(Yeah, as I wrote this I realized that I needed to do a different thing with error handling here, so maybe next time it happens I will get a clue.)Meanwhile, does anyone know why this would happen?It can work sometimes for a particular user and not others. 3.When everything else has worked so far, and the customer's zip file has been created, they can choose download or email.I'm using CFHEADER NAME=Content-Disposition VALUE=attachment; StitcheryMall.zip CFCONTENT TYPE=application/x-zip-compressed FILE=#zipname# deletefile=yes for the download.In our testing, this worked acceptably.It does indeed download the proper file, and for all of our tests (except with Opera), the file ended with .zip.We have customers saying that they are getting .cfm or no extension.Any ideas? 4.When they select email, we use cfmail to=#user.email# from=#me# subject=Stitchery Mall Files spoolenable=no cfmailparam file=#zipname# type=application/x-zip-compressed blah blah blah /cfmail Spoolenable is no because the next thing that happens is that the file gets deleted, and if it is yes, half the time it gets deleted before the message gets sent.The problem here is also the file name.People are getting all sorts of things - and they have forwarded them to me.Generally it is a good file, but often with a .dat or no extension.Any clues here? 5.Some customers are reporting corrupted files.Could this be an issue with the zip tag, or is it more likely part of the download/email process?I suppose it could also simply be their way of reporting a bad file extension. I appreciate any help you can give me.I'm almost too busy sending out files to customers to actually fix anything! Carol Chandler _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
re: Repost: Directory, download and cfmail attachment issues
cfx_zipman didn't work as documented when trying to unzip all contents of a zip file.I'm using CFX_JCompress to extract individual files (but it doesn't work if they are inside a folder within the zip file) and cfx_MultiZip to list the contents of a zip file, extract all of the contents of a zip file, and build a new one. I think that #4 is my biggest problem right now - email attachments getting renamed.Clues anyone? thanks, Carol Chandler From: Matthew Fusfield [EMAIL PROTECTED] Date: Mon, 17 Nov 2003 10:49:42 -0500 Thread: http://www.houseoffusion.com/cf_lists/index.cfm/method=messagesthreadid=28733forumid=4#144291 Try cfx_zipman, it is in Java and should work on Linux. http://www.emerle.net/programming/cfx_zipman.cfm Matt -Original Message- From: Carol Chandler [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 10:41 AM To: CF-Talk Subject: Repost: Directory, download and cfmail attachment issues Reposted because I just discovered on another list that posts made from the archives didn't show the contents of the post, and that might explain why my questions rarely get answered here! Hi all, We have just moved from Windows to Linux, and CF5 to MX.This move brought a whole host of unpleasant issues with it, mostly having to do with our download process. 1.Does anyone know of a really good zip tag that works with Linux?I loved Ben Forta's cfx_zip on Windows, but can't find one that robust for Linux.Specific problem:I can't find one that will unzip a specific file in an archive that has a zipped folder in it. 2.We store our design files in a non-browser-accessible directory, and then create a zip file in another temp non-accessible directory after purchase.I'm using cfdirectory to create this directory.Most of the time it works, but sometimes for no reason that is apparent to me, it doesn't.(Yeah, as I wrote this I realized that I needed to do a different thing with error handling here, so maybe next time it happens I will get a clue.)Meanwhile, does anyone know why this would happen?It can work sometimes for a particular user and not others. 3.When everything else has worked so far, and the customer's zip file has been created, they can choose download or email.I'm using CFHEADER NAME=Content-Disposition VALUE=attachment; StitcheryMall.zip CFCONTENT TYPE=application/x-zip-compressed FILE=#zipname# deletefile=yes for the download.In our testing, this worked acceptably.It does indeed download the proper file, and for all of our tests (except with Opera), the file ended with .zip.We have customers saying that they are getting .cfm or no extension.Any ideas? 4.When they select email, we use cfmail to=#user.email# from=#me# subject=Stitchery Mall Files spoolenable=no cfmailparam file=#zipname# type=application/x-zip-compressed blah blah blah /cfmail Spoolenable is no because the next thing that happens is that the file gets deleted, and if it is yes, half the time it gets deleted before the message gets sent.The problem here is also the file name.People are getting all sorts of things - and they have forwarded them to me.Generally it is a good file, but often with a .dat or no extension.Any clues here? 5.Some customers are reporting corrupted files.Could this be an issue with the zip tag, or is it more likely part of the download/email process?I suppose it could also simply be their way of reporting a bad file extension. I appreciate any help you can give me.I'm almost too busy sending out files to customers to actually fix anything! Carol Chandler [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Directory, download and cfmail attachment issues
Hi all, We have just moved from Windows to Linux, and CF5 to MX.This move brought a whole host of unpleasant issues with it, mostly having to do with our download process. 1.Does anyone know of a really good zip tag that works with Linux?I loved Ben Forta's cfx_zip on Windows, but can't find one that robust for Linux.Specific problem:I can't find one that will unzip a specific file in an archive that has a zipped folder in it. 2.We store our design files in a non-browser-accessible directory, and then create a zip file in another temp non-accessible directory after purchase.I'm using cfdirectory to create this directory.Most of the time it works, but sometimes for no reason that is apparent to me, it doesn't.(Yeah, as I wrote this I realized that I needed to do a different thing with error handling here, so maybe next time it happens I will get a clue.)Meanwhile, does anyone know why this would happen?It can work sometimes for a particular user and not others. 3.When everything else has worked so far, and the customer's zip file has been created, they can choose download or email.I'm using CFHEADER NAME=Content-Disposition VALUE=attachment; StitcheryMall.zip CFCONTENT TYPE=application/x-zip-compressed FILE=#zipname# deletefile=yes for the download.In our testing, this worked acceptably.It does indeed download the proper file, and for all of our tests (except with Opera), the file ended with .zip.We have customers saying that they are getting .cfm or no extension.Any ideas? 4.When they select email, we use cfmail to=#user.email# from=#me# subject=Stitchery Mall Files spoolenable=no cfmailparam file=#zipname# type=application/x-zip-compressed blah blah blah /cfmail Spoolenable is no because the next thing that happens is that the file gets deleted, and if it is yes, half the time it gets deleted before the message gets sent.The problem here is also the file name.People are getting all sorts of things - and they have forwarded them to me.Generally it is a good file, but often with a .dat or no extension.Any clues here? 5.Some customers are reporting corrupted files.Could this be an issue with the zip tag, or is it more likely part of the download/email process?I suppose it could also simply be their way of reporting a bad file extension. I appreciate any help you can give me.I'm almost too busy sending out files to customers to actually fix anything! Carol Chandler [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: cfmail: attachment + multipart?
Samuel Farmer wrote: I am trying to send out a cfmail in multipart format and (sometimes) send an attachment as well. Got the first part to work, but if I add a file to the mimeAttach attribute I get the file but the email formating is lost. Any ideas/solutions? Headers mix-up. Attachments require multipart/mixed, HTML + text requires multipart/alternative. So if you need them both, you got to nest one inside the other. For an implementation that can do that, see http://jochem.vandieten.net/coldfusion/customtags/advancedemail/ Requires cffile, CF MX not supported. Jochem ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
cfmail: attachment + multipart?
All, I am trying to send out a cfmail in multipart format and (sometimes) send an attachment as well. Got the first part to work, but if I add a file to the mimeAttach attribute I get the file but the email formating is lost. Any ideas/solutions? Heres the code: cfscript variables.boundary=Replace(CreateUUID(), -, , 'all'); variables.contenttype=multipart/alternative; boundary=#boundary#; /cfscript cfmail to=#variables.emailTo# from=#getEmailInfo.emailFrom# subject=#getEmailInfo.emailSubject# mimeAttach=#variables.mimeAttach# cfmailparam name=Content-Type value=#variables.contenttype# cfmailparam name=MIME-Version value=1.0 --#variables.boundary# Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit #getEmailInfo.plainText# --#variables.boundary# Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit !doctype html public -//w3c//dtd html 4.0 transitional//en html #getEmailInfo.htmlText# /html --#variables.boundary#-- /cfmail JOB DC AREA We are looking to hire a Junior CF Programmer. If you are interested send me your resume. Cheers, Sam Sam Farmer - Senior Developer Certified Advanced ColdFusion 5 Developer INTELIX - Intelligent Solutions http://www.intelixinc.com 12500 Fair Lakes Circle, Suite 150 Fairfax, VA 22033 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Re: cfmail: attachment + multipart?
Sam, Have you tried creating the entire Multipart-MIME message and attaching the file like that, forgetting about the mimeattach attribute of cfmail? I haven't used it with CFMAIL, but I've sent Multipart-MIME messages to MS Word just fine including various attachments. If you'd like, I have a MultipartMIME CFC to aide in creating Multipart-MIME messages--does basically the same thing your posted code does. I'd be happy to send you a copy if you send me an e-mail off-list (will post publicly after my presentation and more testing). Thanks, Sam Samuel R. Neff Senior Software Engineer B-Line Express Advanced ColdFusion 5.0 Certified Team Macromedia Volunteer for ColdFusion Date: Wed, 2 Oct 2002 15:27:55 -0400 From: Samuel Farmer [EMAIL PROTECTED] Subject: cfmail: attachment + multipart? Message-ID: 006201c26a49$cf263620$[EMAIL PROTECTED] All, I am trying to send out a cfmail in multipart format and (sometimes) send an attachment as well. Got the first part to work, but if I add a file to the mimeAttach attribute I get the file but the email formating is lost. Any ideas/solutions? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: CFMAIL Attachment prob...
I will certainly try this, thanks It was a long day yesterday. - Original Message - From: Douglas Brown [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:48 PM Subject: Re: CFMAIL Attachment prob... try this CFMAILPARAM file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#file.serverfile# Success is a journey, not a destination!! Doug Brown - Original Message - From: Yves Arsenault [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:43 AM Subject: RE: CFMAIL Attachment prob... My upload code goes like this (sorry I didn't include it): cfif IsDefined(FORM.Attach1) cffile action=UPLOAD destination=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ nameconflict=MAKEUNIQUE filefield=attach1 cfset CLIENT.Attach1Name=CFFILE.ClientFile cfset CLIENT.Attach1Size=CFFILE.FileSize cfif CLIENT.Attach1Size GT SizeLimit cffile action=DELETE file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#CLIENT.Attach1Nam e# cfset DeleteClientVariable(Attach1Name) cfset DeleteClientVariable(Attach1Size) cflocation url=dspAdmAttach.cfm?FileBig=yes /cfif cflocation url=dspAdmAttach.cfm?list=Attach2 /cfif It also runs a check on the file size with the SizeLimit Var. I also check the Directory with my FTP client after it was uploaded and it was there, I just get that error with the CFMAILPARAM tag... Yves -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: April 12, 2002 3:36 PM To: CF-Talk Subject: Re: CFMAIL Attachment prob... Sample...first the file has to be uplloaded to the server CFFILE ACTION=upload filefield=fileToSend destination=D:\mail_files\ nameconflict=MAKEUNIQUE CFMAIL server=mail.ircproductions.com TO= FROM= SUBJECT= CFMAILPARAM file=D:\mail_files\#file.serverFile# /CFMAIL Success is a journey, not a destination!! Doug Brown - Original Message - From: Yves Arsenault [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:09 AM Subject: CFMAIL Attachment prob... This is a sample of code: cfdirectory action=LIST directory=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ name=mydir cfmail from=#email_from# to=#email_to# bcc=#email_bcc# cc=#email_cc# subject=#email_sujet# server=smtp.mergitech.com cfmailparam name=Reply-To value=Administrateur [EMAIL PROTECTED] Thank you for trying From:#email_from# To:#email_to# Cc:#email_cc# Bcc:#email_bcc# Date:#DateFormat(email_dateSent,dd/mm/)# Subject: #email_sujet# Body: #email_body# cfmailparam file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#mydir.name# /cfmail I've been getting this message: Unable to attach file. Cannot attach 'C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\.' to the mail message. The file does not exist. The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (8:1) to (8:130). The path in the CFMAILPARAM tag is supposed to be the actual address on the server. At least that's what I was told this afternoon by one of the techs. Any Ideas? Also, can I use something like ExpandPath(//attach/#whatever#) in a CFMAILPARAM tag? Thanks alot all, I work in a school with alot of kids around..my brain is turning to fudge from all the noise!! Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CFMAIL Attachment prob...
This is a sample of code: cfdirectory action=LIST directory=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ name=mydir cfmail from=#email_from# to=#email_to# bcc=#email_bcc# cc=#email_cc# subject=#email_sujet# server=smtp.mergitech.com cfmailparam name=Reply-To value=Administrateur [EMAIL PROTECTED] Thank you for trying From:#email_from# To:#email_to# Cc:#email_cc# Bcc:#email_bcc# Date:#DateFormat(email_dateSent,dd/mm/)# Subject: #email_sujet# Body: #email_body# cfmailparam file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#mydir.name# /cfmail I've been getting this message: Unable to attach file. Cannot attach 'C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\.' to the mail message. The file does not exist. The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (8:1) to (8:130). The path in the CFMAILPARAM tag is supposed to be the actual address on the server. At least that's what I was told this afternoon by one of the techs. Any Ideas? Also, can I use something like ExpandPath(//attach/#whatever#) in a CFMAILPARAM tag? Thanks alot all, I work in a school with alot of kids around..my brain is turning to fudge from all the noise!! Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFMAIL Attachment prob...
Sample...first the file has to be uplloaded to the server CFFILE ACTION=upload filefield=fileToSend destination=D:\mail_files\ nameconflict=MAKEUNIQUE CFMAIL server=mail.ircproductions.com TO= FROM= SUBJECT= CFMAILPARAM file=D:\mail_files\#file.serverFile# /CFMAIL Success is a journey, not a destination!! Doug Brown - Original Message - From: Yves Arsenault [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:09 AM Subject: CFMAIL Attachment prob... This is a sample of code: cfdirectory action=LIST directory=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ name=mydir cfmail from=#email_from# to=#email_to# bcc=#email_bcc# cc=#email_cc# subject=#email_sujet# server=smtp.mergitech.com cfmailparam name=Reply-To value=Administrateur [EMAIL PROTECTED] Thank you for trying From:#email_from# To:#email_to# Cc:#email_cc# Bcc:#email_bcc# Date:#DateFormat(email_dateSent,dd/mm/)# Subject: #email_sujet# Body: #email_body# cfmailparam file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#mydir.name# /cfmail I've been getting this message: Unable to attach file. Cannot attach 'C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\.' to the mail message. The file does not exist. The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (8:1) to (8:130). The path in the CFMAILPARAM tag is supposed to be the actual address on the server. At least that's what I was told this afternoon by one of the techs. Any Ideas? Also, can I use something like ExpandPath(//attach/#whatever#) in a CFMAILPARAM tag? Thanks alot all, I work in a school with alot of kids around..my brain is turning to fudge from all the noise!! Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFMAIL Attachment prob...
My upload code goes like this (sorry I didn't include it): cfif IsDefined(FORM.Attach1) cffile action=UPLOAD destination=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ nameconflict=MAKEUNIQUE filefield=attach1 cfset CLIENT.Attach1Name=CFFILE.ClientFile cfset CLIENT.Attach1Size=CFFILE.FileSize cfif CLIENT.Attach1Size GT SizeLimit cffile action=DELETE file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#CLIENT.Attach1Nam e# cfset DeleteClientVariable(Attach1Name) cfset DeleteClientVariable(Attach1Size) cflocation url=dspAdmAttach.cfm?FileBig=yes /cfif cflocation url=dspAdmAttach.cfm?list=Attach2 /cfif It also runs a check on the file size with the SizeLimit Var. I also check the Directory with my FTP client after it was uploaded and it was there, I just get that error with the CFMAILPARAM tag... Yves -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: April 12, 2002 3:36 PM To: CF-Talk Subject: Re: CFMAIL Attachment prob... Sample...first the file has to be uplloaded to the server CFFILE ACTION=upload filefield=fileToSend destination=D:\mail_files\ nameconflict=MAKEUNIQUE CFMAIL server=mail.ircproductions.com TO= FROM= SUBJECT= CFMAILPARAM file=D:\mail_files\#file.serverFile# /CFMAIL Success is a journey, not a destination!! Doug Brown - Original Message - From: Yves Arsenault [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:09 AM Subject: CFMAIL Attachment prob... This is a sample of code: cfdirectory action=LIST directory=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ name=mydir cfmail from=#email_from# to=#email_to# bcc=#email_bcc# cc=#email_cc# subject=#email_sujet# server=smtp.mergitech.com cfmailparam name=Reply-To value=Administrateur [EMAIL PROTECTED] Thank you for trying From:#email_from# To:#email_to# Cc:#email_cc# Bcc:#email_bcc# Date:#DateFormat(email_dateSent,dd/mm/)# Subject: #email_sujet# Body: #email_body# cfmailparam file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#mydir.name# /cfmail I've been getting this message: Unable to attach file. Cannot attach 'C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\.' to the mail message. The file does not exist. The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (8:1) to (8:130). The path in the CFMAILPARAM tag is supposed to be the actual address on the server. At least that's what I was told this afternoon by one of the techs. Any Ideas? Also, can I use something like ExpandPath(//attach/#whatever#) in a CFMAILPARAM tag? Thanks alot all, I work in a school with alot of kids around..my brain is turning to fudge from all the noise!! Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFMAIL Attachment prob...
try this CFMAILPARAM file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#file.serverfile# Success is a journey, not a destination!! Doug Brown - Original Message - From: Yves Arsenault [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:43 AM Subject: RE: CFMAIL Attachment prob... My upload code goes like this (sorry I didn't include it): cfif IsDefined(FORM.Attach1) cffile action=UPLOAD destination=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ nameconflict=MAKEUNIQUE filefield=attach1 cfset CLIENT.Attach1Name=CFFILE.ClientFile cfset CLIENT.Attach1Size=CFFILE.FileSize cfif CLIENT.Attach1Size GT SizeLimit cffile action=DELETE file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#CLIENT.Attach1Nam e# cfset DeleteClientVariable(Attach1Name) cfset DeleteClientVariable(Attach1Size) cflocation url=dspAdmAttach.cfm?FileBig=yes /cfif cflocation url=dspAdmAttach.cfm?list=Attach2 /cfif It also runs a check on the file size with the SizeLimit Var. I also check the Directory with my FTP client after it was uploaded and it was there, I just get that error with the CFMAILPARAM tag... Yves -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: April 12, 2002 3:36 PM To: CF-Talk Subject: Re: CFMAIL Attachment prob... Sample...first the file has to be uplloaded to the server CFFILE ACTION=upload filefield=fileToSend destination=D:\mail_files\ nameconflict=MAKEUNIQUE CFMAIL server=mail.ircproductions.com TO= FROM= SUBJECT= CFMAILPARAM file=D:\mail_files\#file.serverFile# /CFMAIL Success is a journey, not a destination!! Doug Brown - Original Message - From: Yves Arsenault [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:09 AM Subject: CFMAIL Attachment prob... This is a sample of code: cfdirectory action=LIST directory=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ name=mydir cfmail from=#email_from# to=#email_to# bcc=#email_bcc# cc=#email_cc# subject=#email_sujet# server=smtp.mergitech.com cfmailparam name=Reply-To value=Administrateur [EMAIL PROTECTED] Thank you for trying From:#email_from# To:#email_to# Cc:#email_cc# Bcc:#email_bcc# Date:#DateFormat(email_dateSent,dd/mm/)# Subject: #email_sujet# Body: #email_body# cfmailparam file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#mydir.name# /cfmail I've been getting this message: Unable to attach file. Cannot attach 'C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\.' to the mail message. The file does not exist. The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (8:1) to (8:130). The path in the CFMAILPARAM tag is supposed to be the actual address on the server. At least that's what I was told this afternoon by one of the techs. Any Ideas? Also, can I use something like ExpandPath(//attach/#whatever#) in a CFMAILPARAM tag? Thanks alot all, I work in a school with alot of kids around..my brain is turning to fudge from all the noise!! Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFMAIL Attachment prob...
Have you verified that the file is getting uploaded? Brian Yager President - North AL Cold Fusion Users Group Sr. Systems Analyst NCCIM/CIC [EMAIL PROTECTED] (256) 842-8342 -Original Message- From: Yves Arsenault [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 1:10 PM To: CF-Talk Subject: CFMAIL Attachment prob... This is a sample of code: cfdirectory action=LIST directory=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\ name=mydir cfmail from=#email_from# to=#email_to# bcc=#email_bcc# cc=#email_cc# subject=#email_sujet# server=smtp.mergitech.com cfmailparam name=Reply-To value=Administrateur [EMAIL PROTECTED] Thank you for trying From:#email_from# To:#email_to# Cc:#email_cc# Bcc:#email_bcc# Date:#DateFormat(email_dateSent,dd/mm/)# Subject: #email_sujet# Body: #email_body# cfmailparam file=C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#mydir.name# /cfmail I've been getting this message: Unable to attach file. Cannot attach 'C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\.' to the mail message. The file does not exist. The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (8:1) to (8:130). The path in the CFMAILPARAM tag is supposed to be the actual address on the server. At least that's what I was told this afternoon by one of the techs. Any Ideas? Also, can I use something like ExpandPath(//attach/#whatever#) in a CFMAILPARAM tag? Thanks alot all, I work in a school with alot of kids around..my brain is turning to fudge from all the noise!! Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfmail attachment size limits?
are there size limits to cfmail attachments? ~~ Stephenie Hamilton __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: cfmail attachment size limits?
It's only limited by the available disk space and the maximum size of a mail that is defined in your email server. HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com - 631-737-4668 x101 inFusion Mail Server (iMS) - The Intelligent Mail Server Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm - Original Message - From: Stephenie Hamilton [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 2:04 PM Subject: cfmail attachment size limits? are there size limits to cfmail attachments? ~~ Stephenie Hamilton __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists