Send the PDF in an e-mail, without ever having saved the PDF on the server

I know how to send files in emails in the CF.

How I could modify the following code so that I could send the PDF in an e-mail, without ever having to have saved the file on the server?

<!--- The compasstravel database is part of the Getting Started 
    tutorial application, found under the cfdocs directory. --->
<cfquery datasource="compasstravel" name="compasstrips">
SELECT tripName, tripDescription, tripLocation, price
FROM trips
ORDER BY price
</cfquery>
<cfdocument format="pdf"
        filename="#GetDirectoryFromPath(GetTemplatePath())#/compasstrips.pdf"
        overwrite="yes">
    <cfdocumentsection> 
        <h1 align="center">Compass Travel</h1>
        <h2 align="center">Destination Guide</h2>
        <p align="center"><img src="cfdocs/getting_started/photos/somewhere.jpg"></p>
    </cfdocumentsection> 
    <cfdocumentsection> 
        <cfdocumentitem type="header">
            <font size="-3"> <i>Compass Travel Trip Descriptions</i></font>
        </cfdocumentitem> 
        <cfdocumentitem type="footer"> 
            <font size="-3"> 
                <cfoutput>Page #cfdocument.currentpagenumber#</cfoutput>
            </font> 
        </cfdocumentitem> 
        <cfoutput query="compasstrips"> 
            <hr>
            <h2>#tripName#</h2>
            <p><b>#tripLocation#</b></p>
            <p>Price: #DollarFormat(price)#</p>
            <p>#tripDescription#</p>
        </cfoutput> 
    </cfdocumentsection> 
</cfdocument>

I'm sure theres a way to create these files without saving it, I don't remember the tutorial

Nice that you say this, Nikos101. I played with it a little more and found that you can indeed send the PDF as an attachment without saving it first. I did it like this:


test the pdf content

[email protected]"to ="[email protected]"subject ="test the pdf attachment">"

content of the message: blah blah blah

Tags: ColdFusion

Similar Questions

  • With assistance from 31.1.0, on Mac &amp; distribution lists sending the server responds ' address of NW-Member &lt; "chorfa watch' &gt; invalid because no e-mail form user@host. »

    I upgraded to Thunderbird 31.1.0 yesterday. I have not modified the distribution list in the last few weeks. This is the first time I used the distribution since the upgrade list. I never got an error message from the mail server who oppose my distribution list. The distribution list has thirty three 33 addresses. The last time I sent by email using the distribution list has been 28/08/14. Text of the alert message 'Invalid recipient address' is ' < ' chorfa watch"> NW-members is not a valid e-mail address because it is not of the form user@host.» You need to fix it before you send the e-mail. »

    (I've edited the details of the issue and moved the thread to Thunderbird - c)

    I'm glad to hear that your problem has been resolved. I noticed that you have chosen your own answer as the solution, you can select the answer that solved the problem. This will help other users with similar problems more easily find the solution.

    I also have new information on this subject.

    It looks like this bug. If you have a Bugzilla account, it would be useful to vote for this issue.

    It seems that lists with a description that includes several words have this problem. The bug report suggests to replace whites "" between the words in the descriptions of these lists with an underscore "_".

    If you don't want to change your descriptions, the other workaround provided still works.

  • Automation of Actions without ever opening Photoshop

    Hello

    I was wondering if it is possible to write a script that will
    1. open a PhotoShop file
    2 perform a set of actions and
    3. save the new file
    without ever having to manually a user of the computer, open the file?

    I know that it is possible to the Scripting of actions but would like to know their automation without launching the program user.

    I hope it is clear and there is experience this. Thank you very much!

    I think you can write a script to do the treatment you want to save the document in a file and close Photoshop.  Can record you an action that has a single step 1 menu file > Scripts > YourScriptName.   You can then create a drop on your desktop using the file menu > automate > create droplet... and use action that contains the script in one step.   Close Photoshop.

    On your desktop you should see gout you created, when you drop a file on this drop Photoshop starts.  The file will be processed and saved by Photoshop and Photoshop will be closed. As if by magic.

    So that answers your question?  Answering a question by a new question why not?

  • The mail is in a loop trying to send the same letter without success

    I have this problem, I can not send emails, any email account that I use. mail gets in a tent loop to send the same email over and over again.

    The window with the unsent mail keeps poping up and go without having me no press.

    Somoe...... Hotel details

    The goies of e-mail in the Outbox mailbox and it has not registered as sent. To stop I'm going to Outbox and delete the e-mail, then the email window appears a few times, and it stops.

    I need help!

    Somoe...... Hotel details

    I tried to restart the any and rebuild the mailboxes

  • I get an error message saying that the mail was not sent when sending a PDF file in Outlook Express.

    Outlook Express 6

    Hello
    Recently, if I send a big PDF file via outlook, after attempting to send the files, I get an error message saying that the mail has not been sent. The files remain in the Outbox, but when I check with the recipient, they confirm that they have received the mail! This has only recently begun to happen. Any suggestions? Thank you

    Check: File | Work offline and in: reviews | Layout: uncheck the preview pane. Open the Outbox and delete the message.
     
    If that does not create a new box of sent, and sent items.
     
     
    Follow these steps for the Outbox and sent items after you move the messages you want to save to a local folder that you create.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
    In Windows XP, the files of user OE (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
     
    With OE closed, find the Outbox.dbx and Sent Items.dbx file and remove them. New files will be created automatically when you open OE.
     
  • When you try to attach a PDF file to an e-mail message in Yahoo Mail I'm unable to send the e-mail message.

    I get this message when I try to attach a PDF file to a Yahoo Email and it prevents me to send the attachment.

    original title: access denied, line 56, Char7

    Hi Harvey.s,

    1. Did you the latest changes on the computer?
    2. What web browser you use to access yahoo mail?
    3. Having similar problem when setting all other files as a word document in the email?
    4. You have security software installed on the computer?

    Check if you are facing the similar question in the setting of all other files in yahoo mail.

    Try the procedure only if you use the browser Internet explorer to access yahoo mail below.

    How to resolve script errors in Internet Explorer on Windows computers

    http://support.Microsoft.com/kb/308260

  • Why Outlook in Windows 7 keep ask my network password every time I open the program and repeatedly asking the password. I can receive and send mail without problems

    Why Outlook in Windows 7 keep ask my network password every time I open the program and repeatedly asking the password. I can receive and send mail without problems

    See this for help...

    http://support.Microsoft.com/default.aspx/KB/290684 MS - MVP Windows Desktop Experience, "when everything has failed, read the operating instructions.

  • Change the default e-mail address to send a pdf of the emails once the pdf file created

    My email address is to send the email with the newly created pdf file. How can I change the address to my primary e-mail address?

    Main e-mail address is [email protected]

    Change the accounts that you have configured in Edit - Preferences - mail accounts.

  • When using PDF documents for signature, you need to 'send' the document for signature? Alternatively, can I publish the document on my site and just ask visitors to sign without send me to each person, when using PDF documents for signature

    When using PDF documents for signature, you need to 'send' the document for signature? Or can I publish the document on my site and simply ask visitors to sign without send me to each person?

    Hello

    You can use the Widget feature to publish the document on your website. Here is the link for reference:

    https://helpx.Adobe.com/document-cloud/help/create-widgets.html

    -Usman

  • How can I find the ability to send a PDF directly from the drive on my iPad?

    I usually mark the homework students in Reader on my iPad and then send it to them.  All of a sudden, I can't.  Accidentally change a setting?  I can always email from gmail without problem.  Any ideas on what my settings should be to return this ability?  Thank you.

    PC

    I can always email from gmail without problem.

    Do you use Gmail app on your iPad?

    Or is it a Gmail account added to Apple's Mail application?

    It is difficult to diagnose the problem without inspecting your iPad. But I suspect that your e-mail application may not be configured correctly.

    1. In the home screen, tap Settings.
    2. Tap "Mail, Contacts, calendar" in the left pane of the settings screen.

    You have all the accounts listed in the right pane?  You can also delete the existing account and add the back of the same.

    Here are some other things you can try.

    • Tap Mail in the home screen to launch and see if you can email from the Mail application
    • Launch iBooks on your iPad and try to send a PDF of iBooks

    Please let us know what you find.  Thank you.

  • Submit button to send the PDF?

    Is it possible to submit a PDF form by e-mail without activating the 'extra features' via Adobe Acrobat Pro X? Or is it MUST be enabled in order to submit anything by email? Thank you!

    If you want to allow the user to make changes, as in a form and send the complete PDF using the reader, must the document be enabled for the drive. Otherwise, it is not able to save any changes that can be made, which must be done if you want that any PDF to send. If you only want to send the form data or your users will only use Acrobat (or some 'readers' non Adobe), then it is not. Note that you can fill out a blank form using Acrobat if you are only sent the form data. Player 10 is also able to add sticky notes and text highlight comments without the document enabled player.

  • I do my job to the computer on a MAC computer. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open t

    I do my job to the computer on a MAC book PRO. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open the document. My problem is the document does not show the icon, but rather the document is already open. I spoke with 2 Apple. 'Experts' care and can help me. Can someone tell me what to do?

    It's a question of how the recipients e-mail programs deal with attachments. Many e-mail programs will open all the files they can handle, including files jpg and PDF, by default, and if the recipient has not changed that there is nothing you can do about it. The only solution is to the compress first, then it will be delivered as an attachment, allowing the recipient to decompress and open it.

  • How set you Firefox to print what is on the page of e-mail without adding a left marghin of 1 inch to this page, which affects a part of the right side of the page?

    When I get an email page often has a certificate that I would like to print. With the help of printing at the top of the page displays the e-mail as a page as it appears in my webmail. When I hit the print button on this page there is always a margin of 1 inch, added to the cup of the printed page on the right side of the page you want to print.

    My printer accepts what I send from word, pdf files as they appear on the screen, why Firefox doe not send the same images that appears on the printer?

    This seems to happen whenever the screen displays an image that is located near the border to border and no text. When a margin is part of the e-mail message or it's text, this seems not to happen.

    HELP please. I really need to be able to print what is displayed to print the appropriate document.

    Thank you

    Bob Ferguson
    Sonoran Consulting & Finance, LLC

    Some pages add their own margin to the minimum margin that is defined in the configuration of the Page. First of all, you could reduce the margin here:

    Alt + f (display the classic file menu) > Page Setup > margins & header/footer tab

    Second, you can try to use shrink to fit. However, if the image is a background image instead of the part of the content of the page, which is perhaps no effect.

  • Cannot send the PDF with Outlook Express.

    PROBLEM SENDING FILE PDF WITH OUTLOOK EXPRESS.

    Here's what's happening.  I created a PDF file in adobe 4 pages, I can reach the PDF file to a mail sent in Outlook Express, but I see where he treats of it says part 1, part 2, part 3, all the way to part 7, when there are only four pages.  The recipient gets 7 different emails and cannot open an any of them.    I have a yahoo email and I can send the PDF file there.   Just frustrating.  I use Windows XP.  Not familiar with computers but I would like someone to tell me the problem.  It has worked before and I don't know what happened to create the question.  Thank you.

    Tools | Accounts | Mail | Properties | Advanced. Uncheck the box: "Break apart messages...". ».

  • Windows Mail send random email attachments to unknown recipients without my knowledge.

    Windows Mail send random email attachments to unknown recipients without my knowledge. The only reason I know this is a postmaster rejects opinion. How can I stop it?

    original title: Windows e-mail viruses

    If you use Windows Mail in Vista, then go to tools | Options | Security and check the box warn if other applications send by mail like you.  I think, however, that your email address is being spoofed by another infected machine and send e-mails disguised coming from you.  There is not much you can do about it.

    Make sure that you machine is not infected by a virus scan (for example www.microsoft.com/security_essentials/) and search for malware (www.malwarebytes.org). But it may be that you or your machine that is responsible for sending spam that appears to come from your hand.

    Steve

Maybe you are looking for