cfdocument format=”pdf” name=”mydoc”> cfdocument> cfmail from=”[email protected]” to=”[email protected] “. I want to create a PDF (simple enough using cfdocument) but then I would like to cfmail to=”[email protected]” from=”[email protected]”. I create my PDF from the form input using the cfdocument tag. cfmail to=” [email protected]” from=”##” subject=”Order.
|Published (Last):||21 August 2014|
|PDF File Size:||4.69 Mb|
|ePub File Size:||6.76 Mb|
|Price:||Free* [*Free Regsitration Required]|
Only one minor tweak I had to do was replace the binaryEncode content with ToBase64 content because the other threw an error when it encountered a single quote in the content.
I’m pushing hard to get CF8 here but since we just got 7, I have to make something else work for a while. I suppose that cfcontent is ideal So, inside cfdocument, I do this: Thank you for your input. I am using Version 7 now but soon to get v8. The pdf does not need to render on screen, but for testing purposes, we could let it render on the screen to know if the image was loaded or not, by either naming or not naming the cfdocument.
It is working on your end? If i understand your question correctly. But, what we really want is to send them an email that is an invitation that they could accept or decline. The form I’m trying to send via email and display as a pdf is at http: If you want to use images from outside the webroot, you’ll need to provide them directly, as in your example or as KobbyPemson did.
First, if you can do this using just CF7 natively provided the file lives on disk: Attach cfdocument to a cfmail.
See the documentation for more information I believe its the cfmailparam tag that the cdocument was tied to, but can’t recall off the top of my head. Email Required, but never shown.
CFmail / CFDocument combo problem | Adobe Community
It’s now working, not sure what I did wrong. Dan you said “Also, the CF8. Taking your example I’m trying to create a mail with an ICS attachment, so that the recipient can acknowledge or decline the invitation. Thank you for the info!
See this blog post for details: Anyone else had this problem? Do you know of any good examples on processing incoming emails? Sign up using Email and Password. You solution worked like a charm! A couple notes to clarify: Works on my end.
Using CFMAIL to send attachments stored in memory
Once again, many many thanks! If it is need be, the pdf can get stored in the hdd, get attached, emailed, then deleted, but would opt for it not to get stored in the hdd. Joost van der Drift.
I am going to try it.