Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / September 2005



Tip: Looking for answers? Try searching our database.

cfdocument for html?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChrisAmaro - 29 Sep 2005 18:14 GMT
Guys, this may be a no-brainer for a few of you (or most of you!) but is there
a way to create html files on a server in the same fashion that cfdocument
creates pdf files and saves them to a server share? I need to email an html
file as an attachment instead of in the body of the email, using cfmail. I have
everything working perfectly with pdf, just need to try html.

(the ultimate goal is for my rightfax server to process html attachments
properly - we didn't pay for the pdf conversion tool and I don't have time to
climb the corporate ladder to get that extra $1900 approved by my CFO!!!)

Thanks in advance!!!
ChrisAmaro - 29 Sep 2005 18:14 GMT
Sorry for the duplicate post, not sure what happened...
Stressed_Simon - 29 Sep 2005 19:08 GMT
Write the html to a variable, then use cffile action="write" to save it to the
file system. Then use cfmail with cfmailparam to attach it.

Be aware that you should not now delete it as more often than not your mail
will go to a queue, if you delete the file now, it will not be there to attach
to the email.

Best bet is to create a scheduled task to manage the deleting.

HTH
ChrisAmaro - 29 Sep 2005 19:10 GMT
Thanks Simon for your answer. I will try it now. I plan on keeping the html
files on the share, as existing docs are available in a 'library' format. I'll
see how it works with size constraints...

Thanks again!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.