Category Archives: Coldfusion

CFMail Adding multiple attachments with CFMAILPARAM

In building a project for work I needed to add potentially multiple attachments to an email. Fortunately, CFMail has a way to add header and additional information. <cfmail to=”somebody@domain.com” from = “yourstruly@domain.com” subject=”something” server=”yourmailserver”> <p>Here are your attachments.</p> <cfmailparam file=”c://yourpath/filename.ext”> … Continue reading

Posted in Code, Coldfusion, Problems & Fixes, Snippets | Comments Off on CFMail Adding multiple attachments with CFMAILPARAM

cfselect and bind

I got to use more binding this week. Oh what a joy. Just don’t have any errors in your SQL, your CFC, or your cfselect formpage.cfm cfselect name=”partnum” bind=”cfc:part_functions.getPartnum()” value=”partnum” bindonload=”yes” part_functions.cfc – Note brackets removed due to coding issues. … Continue reading

Posted in Code, Coldfusion | Comments Off on cfselect and bind

cfdiv and bind

I have been using the CFDIV and BIND attribute since we switched to Coldfusion 8. This week it really came in handy. I helped a co-worker create a dropdown list that changes based on year selected. Some options were not … Continue reading

Posted in Code, Coldfusion | Comments Off on cfdiv and bind

ColdFusion ReReplace

Avery useful function for dealing with strings. Uses a regular expression (RE) to search a string for a string pattern and replace it with another. The search is case-sensitive, and it has attributes you can set to control case. REReplace(string, … Continue reading

Posted in Code, Coldfusion, Snippets | Comments Off on ColdFusion ReReplace

Need an Excel upload script for CF

Dying for our servers to be upgraded to CF 9. I am in desperate need of a file upload process for Excel. I can not use POI or anything that requires java objects (according to our hosting folks). CF9 has … Continue reading

Posted in Coldfusion | Comments Off on Need an Excel upload script for CF