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):||25 May 2015|
|PDF File Size:||8.28 Mb|
|ePub File Size:||6.23 Mb|
|Price:||Free* [*Free Regsitration Required]|
I’ve spent the last 5 hours or so surfing across expert-exchange, houseoffusion and many many forums looking for a way to email and excel sheet that is dynamically generate and this is absolutely beautiful and worked without much trouble. I was amazed at how simple and clean the code ran and delivered the two PDF reports as attachments to my Outlook email Inbox!
Anyone else had this problem? Once I get one of these going, I can use it for many applications we have at the library. As a comment above mentions, you would probably be better off using the method talked about here: In that the pdf is not stored the hdd. Thank you for your help. As the comments state, this does not produce a syntactically correct SMTP message–which could be your problem. Post as a guest Name. The pdf renders when the name is removed, it does not render when the name is present.
Thank you for the info!
Dan you said “Also, the CF8. That should show you off enough code to get you up and running. I’m now looking forward to Scheduling all of my reports in like fashion.
Any ideas from anyone? Dan, this is awesome! In my experience, relative paths are problematic, so it’s best to use absolute paths. How do I alter your code above cfdocment use my PDF cfdocumenr of the other attachments you hard-coded in?
Works on my end. Thanks for showing this demo. I’d like to send an ics iCal file cfodcument having to save it as a file. 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.
Sign up using Facebook.
CFmail / CFDocument combo problem | Adobe Community
Using CFMAIL to send attachments stored in memory
So, I thought I’d re-do my original example using Jon’s technique in cfdocumenr post—just so you can see an example of both methods. The answer is there The images are stored outside of the wwwroot folder. So, when you provide it, you are telling CF to stuff the PDF in a variable using the name you supply.