HOPE THIS HELPS...

To create the PDF file: 

        <cfset pdfdocname="#CreateUUID()#.pdf">
        <cfdocument format="PDF" userPassword="YOURPASSWORDHERE"
encryption="128-bit"
filename="rootpath\EXTENDEDPATHTOSECUREFOLDER\#pdfdocname#"
permissions="AllowPrinting">
                <cfoutput>
                YOUR FORMATTED OUTPUT HERE
                </cfoutput>
        </cfdocument>


To attach to email:

        <cfmail from="YOURFROMADDRESS" to="YOURTOADDRESS"
Subject="YOURSUBJECT" server="#smtpid#" type="html">
                <cfmailparam file =
"rootpath\EXTENDEDPATHTOSECUREFOLDER\#pdfdocname#">
                <p>YOURMESSAGEHERE submitted at
#TimeFormat(Now(),"HH:mm:ss")#, #DateFormat(Now(),"MM/DD/YY")#.</p>
                <p>Details are in the attached file. This file is password
protected.</p>
        </cfmail>


Afterwards delete the file... I'm doing it with a scheduled tasks that runs
every 10 minutes and deletes any file that’s more than 10 minutes old. That
gives the CFMAIL enough time to send the file before you delete it.



Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be &.

Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged



-----Original Message-----
From: cfcom [mailto:[email protected]] 
Sent: Friday, July 30, 2010 12:11 PM
To: cf-talk
Subject: RE: sensitive data collection practices with cf


Wow, nice technique - yes I would definitely like to see the code

-----Original Message-----
From: Robert Harrison [mailto:[email protected]] 
Sent: 2010-07-30 12:06
To: cf-talk
Subject: RE: sensitive data collection practices with cf


> b) there is an auto email sent to the client's backoffice where the data 
> Is received - what is a good practice for handling the sensitive data on
the email?

I do exactly this on one of my sites. Instead of putting the data in an
email I write out an encrypted password protected PDF file to a protected
area on disk, then I attach the file to the email; then delete the file from
disk. 

The email recipient knows the password to the PDF. This works very well. I
can send you some code snips if you need but it's rather straight forward.



Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be &.

Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged


 

__________ Information from ESET Smart Security, version of virus signature
database 5326 (20100730) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335896
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to