Attach a PDF file when sending e-mail

Hello

Can you help me to send a pdf file as an attachment when sending mail.

Also, please tell me the required configuration changes that need to be done.

It is important that where is your file that you are trying to reach and how you create the file object out of it to go to the MimeMessageUtils.setContent (). Thus there is no specific location to place the file you just create its object file correctly. For example if your PDF is created by another application and it is present in the so-called C:\app\output\pdf or/usr/local/app/output/pdf so that you can do is to define a Java System property (let's name the property system as file.attach.dir) through your scripts to start the server with comme-Dfile.attach.dir=C:\\app\\output\\pdf ou-Dfile.attach.dir=/usr/local/app/output/pdf

And then, in your code you can do something like:

Attachment of files = new queue (File.separatorChar + System.getProperty ("file.attach.dir") + "attachment.pdf");
MimeMessageUtils.setContent (message, content, seizure, false);

You can also place files for attachment to a specific folder of ATG and access it using atg.nucleus.DynamoEnv. Say that the file is in a directory called 'attachments' in the ATG data directory which by default is \home in the case of an attained EAR you can do

Attachment of files is new leader (atg.nucleus.DynamoEnv.getDataDir () .getPath () File.separatorChar + "attachments" + File.separatorChar + "attachment.pdf");.
MimeMessageUtils.setContent (message, content, seizure, false);

If you make and deploy EAR on the application server as stand-alone then you might already have the ATG data directory affect some location through the property system - Datg.dynamo.data - dir in your server startup scripts. So, if this is the case, you can use this same property as described earlier in the first approach.

You can always check the path of the file and know if he is getting properly solved using Java API file as file.getPath () and file.exists () where the file is the file object that you created. Make sure file.exists () return you true and that you will not encounter a FileNotFound Exception.

Tags: Oracle Applications

Similar Questions

  • 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

  • When I attach a pdf file to an e-mail message, it displays the file in full no not as an attcahment

    Why is it when I attach PDFs to an e-mail message, they show the full document of the file not as a pdf file icon... I have attached a passport to send and it showed the page of the passport and not on the pdf icon... I don't understand why? Someone at - it help him?

    Paul

    Right-click on the attachment PDF full size and in the context menu, select display as icon.

  • When I try to attach a pdf file to an e-mail it is printed in El Capitan why

    Why, a PDF file is saved under the ribs (top Capitalan) not come up as an attachment but rather returning to full printed form?

    In the mail?

    Try control - clicking it and see if you get an option to do an attachment.

    Terminal command to try.

    defaults write com.apple.mail DisableInlineAttachmentViewing - bool YES

  • Attach the pdf file to the e-mail and use text body field

    I'm looking to create a form with a button 'submit' at the bottom.  When you click the button submit, I would e-mail window to open with a predefined recipient, and the pdf file attached.  I found the code to achieve this using this.mailDoc)

    However:

    I hope also to get the text field 'Name' of my screen and use it in the body of the e-mail message.

    I found the following code in another post, which seems to work for this:

    var cClientName = this.getField("ClientName").value;

    cAddress var = this.getField("Address").value;


    cbody var = ' Customer Information: \n\n ";

    cbody += "name:"+ cClientName + "\n"; '.

    cbody += "address:"+ cAddress + '\n'; '.


    var myURL = "mailto: . " [email protected] ? subject = Customer Info & body =";

    myURL += cbody;


    app.launchURL (myURL, true);


    That will open a window of e-mail with a body that contains the data of AcroForm fields named "ClientName" and "Address".

    The problem is that this code will not work the pdf.

    How can I get the best of both worlds?

    Thank you!

    You don't need launchURL to achieve this goal. mailDoc is capable of setting of the

    subject line, body of the email, the lists of beneficiaries, etc.

    See this tutorial for a detailed explanation:

    http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

  • Problems attaching a PDF of email (hotmail) in Mail on a Mac

    Hello

    I'm trying to attach a PDF file to an e-mail - using Hotmail on Mac Mail. It made plenty of times before and can fix other things (by doc Word excel spreadsheet etc.).

    Following message appears.

    Please wait...

    If this message is not subsequently to display the content of your document, your PDF reader isn't able to display this kind of document.

    Goes on to say retrieves the most recent version of Adobe etc - I already had.

    Any suggestions please?

    I'm confused. He will join an e-mail message you send?

    Looks like since you mention view that yo try to view an attachment.

    What is the source / what created the pdf file?

  • YOU CAN SET OUTLOOK EXPRESS AUTO ATTACH A PDF FILE TO A SPECIFIC E-MAIL MESSAGE?

    HI, HOPING SOMEONE CAN HELP ME. IM NOT TECH SAVVY AT ALL! Laughing out loud

    AT WORK, I USE OUTLOOK EXPRESS TO SEND THE SAME EMAIL MSG TO ALL OF OUR CUSTOMERS IN OUR DATABASE. I SEND THESE MESSAGES ONE BY ONE. IM ALSO A PDF FILE ATTACHED TO THIS MSG IS ANYWAY TO SET OUTLOOK AUTO ATTACH THE PDF FILE? I HAVE THE MSG SET UP AS A SIGNATURE SO I DON'T NOT RETYPING IT EACH TIME.

    THANKS IN ADVANCE FOR YOUR SUGGESTIONS!
    CANDiCE

    Ok. You are fully patched.

    Just to recap, you open a new message window and save that not a lead or an answer, correct?

    If so, download and install the zip here and restart. Then check your again saved eml file.
    http://www.insideoe.com/#kb918651
    Bruce Hagen MS - MVP [Mail]

  • I have problems with pdf files, sent to me by e-mail, download doc on my canon printer and the creation of pdf file to send.

    Original title: pdf files

    I am running microsoft windows xp home edition 2002. I always have problems with pdf files, sent to me by e-mail, download doc on my canon printer and the creation of pdf file to send. I use microsoft works Task Launcher 2004 edition.

    Is there an easy way to pass so I can handle pdf files?  Can anyone help?

    Thank you Tim

    Hello

    Please provide us with more specific information on the issue. Your post is a bit confusing.

    If you need to open the PDF files, you will need to install a PDF reader.

    If you try to print in PDF format, you must install Adobe Reader.

    Reference: http://www.adobe.com/downloads/

    THIRD WARNING:
    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroE

    When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroExch or ensure that all the dialog boxes in AcroExch are closed. "even disabled protection at startup mode. Who made no difference

    Hi sdesk.

    This problem occurs with the 64-bit application as Acrobat is a 32-bit application making it incompatible to insert objects into a MS Word 64-bit application.

    As a workaround solution insert the object as a 'Create New' rather than create a file.

    Let me know if it helps.

    Kind regards
    Nicos

  • Is it possible to create the icon PDF format display with the cover of the document image, when sending via "Mail" on a mac?

    Is it possible to create the icon PDF format display with the cover of the document image, when sending via "Mail" on a mac?

    InDesign has no control on how Apple Mail displays a PDF it creates.

    My experience is that Mail displays a preview of a single PDF page, but not a multiple page PDF. In addition, for a single page PDF, the user may tip if the PDF shows a preview by right-clicking the icon/preview.

  • When I send an email from Outlook Express, it is sent several times, usually happens when sending electronic mail to the affiliate

    When I send email to the affiliate, it will send several times, fill their Inbox, and then the returned several e-mails to fill my Inbox. I have sent emails of the sample to my personal account, and that works well, except when I attach a pdf file, then it send twice. How can I fix?

    Tools | Accounts | Mail | Properties | Advanced. Uncheck the box: "Break apart messages...". ».
     
    If that does not she, you have corruption of dbx files.
     
    Create a new Outbox and sent items folder.
     
    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.
     
     
     
  • Mac OS 10.10.2 is installed and can open documents on my new Mac Air but an error message occurs, with, I try to attach a PDF file to emails.  Any thoughts?  Apple could not help.

    Mac OS 10.10.2 is installed and can open documents on my new Mac Air but an error message occurs when you try to attach a PDF file to emails.  Apple was not able to solve.  Any thoughts?

    It is not broken, just confused. The recipient must save the file and open it in Adobe Reader. Your e-mail application is not using Adobe Reader.

  • Why can't attach a PDF file in gmail

    When I try to attach a PDF file (or any file type) to an email in Gmail in Firefox, it still fails. I actually had a little real PDF to fix this morning but then tried a little bigger and it has just failed. I have no problem with it on IE or Chrome.

    Hello

    Try clear your recent history:

    Check if this happens in safe mode:

    Check if your plugins are updated:

    Try going to Subject: config and check if the plugin.state.java option is true seted

  • need help, can not attach the image file to my yahoo mail.

    need help, trying to compose e-mail... can not attach the image file to my yahoo mail... using firefox. Vista starter edition

    using 3 G hsdpa usb modem, model huawei E156G

    download stats is 0.00 KB its not not download, http://img337.imageshack.us/img337/2547/3ginterface.jpg

    the strange thing is that if I only download small file/pic as 50 KB download data passes through, but as 1 MB image file or more it will not pass and remained at 0.00 kb

    I tried to run administrator (always on the standard user account)---> cmd---> ipconfig/flushdns, still the same problem.

    Hi korgmeister,

    1 when was the last time it was working fine?

    2. do you have security software installed on the computer?

    3. are you able to access all Web sites?

    First of all, I suggest that you try to download the file with Windows internet explore.

    If you are able to download using Windows internet explore, then there may be a problem with the Firefox browser.

    Uninstall and reinstall Firefox browser and check.

    If you are facing a similar issue when you use Internet explore, then it may be Internet problem try to download some other file or document check if it works.

    Also contact your internet service provider to check if the connection side there is fine.

    Go back with the results!

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • When sending e-mail and how do you change «connected by DROID on Verizon wireless»

    When sending e-mail and how do you change "connected by DROID on Verizon Wirelss"

    found it... Thanks

Maybe you are looking for