Open e-mail with path(URL) of current file

I'm trying to create a button in a form that will create a new e-mail message containing the URL of the current file (e.g., file://z:\file.pdf) so the user can just click to open it. But I'm no expert with Javascript.
Doing a little research, I've gotten this far with the script for the button:
app.mailMsg(false, "[email protected]", "", "", "Form Subject", "Please see form located here: \n\n "+docurl+"");
It opens a new message, but it's the last part that doesn't work. I can't seem to figure out the command that returns the URL, or how to insert it into the body of the e-mail. Any help? Thanks.

Instead of docurl, try event.target.URL. This references the url property of the Acrobat Document object. Though, since your calling this as a parameter of an AcroForms method it may have to be this.URL (the way you'd reference it from an AcroForm (a form not designed in Desinger). I'm not sure off the top of my head, you'll have to try both and see which works.
Couple of caveats:
1) If the user opens the form, edits it, then clicks this button without saving the form referenced from this link to the file won't reflect the edits.
2) If you send the email, I'm not sure that the URL would make sense in the context of another machine. IE: file://c:/test.pdf might work on my machine, but means nothing on yours if you don't have test.pdf on under c:\ on yours.
Chris
Adobe Enterprise Developer Support

Similar Messages

  • Trouble opening Yahoo Mail with Safari

    Recently began having trouble opening Yahoo Mail with Safari.  I am continually asked to upgrade my Safari to a newer edition; however, when I do a software upgrade check it tells me I have the latest edition.  Anyone else having this trouble?

    Your OS is way out of date and thus your version of Safari and Firefox are too. It would be wise to update Tiger using the combo update found here:http://support.apple.com/downloads/MacOS_X_10_4_11_Combo_Update__PPC
    Then you can further update Safari to it's current version using Softwareupdate from the Apple menu.
    You can also use Firefox Help menu to update to it's current version.
    To be safe run Disk Utility's repair disk function from your original install disk and repair permissions before and after the update from your boot disk.
    Good Luck,
    hpr3

  • Receive mail with POP3 and saving to file using XI

    Hello! I'm new to XI, could you help me with this "simple" task: Receive mail with POP3 and saving to file.
    Thanks!

    Hi,
    you will need:
    Mail Sender Adapter
    http://help.sap.com/saphelp_nw04s/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm
    and File Receiver Adapter
    http://help.sap.com/saphelp_nw04s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Regards
    Patrick

  • Most of the time Thunderbird only opens incoming mail with a double click in a new window which I find infuriating so is there a workaround or a fix for this?

    When Thunderbird starts, it opens incoming mail into the lower panel with a single click. But after an hour or two this no longer works and i have to double click to open the message which goes into a new window.

    ''abowie [[#question-1040591|said]]''
    <blockquote>
    When Thunderbird starts, it opens incoming mail into the lower panel with a single click. But after an hour or two this no longer works and i have to double click to open the message which goes into a new window.
    </blockquote>
    ''Matt [[#answer-675789|said]]''
    <blockquote>
    sounds like a bad add-on to me. Restart holding the shift key and see if the issue arises again.
    </blockquote>
    Thanks for your response, Matt. I have now run for a fortnight without having to double click to see a new message. All add-ons are disabled and the trick will be to eliminate them one by one till I find the culprit.
    Cheers, Alan

  • How to open a webpage with an URL out of my database...

    Hi, I'm an IT student still learning Oracle and I'm doing this little project for school
    Now I'm designing a program for a videostore.
    I'm displaying an URL in a field and I have a button next to it.
    Now if I press the button I want to open a new explorer window, with that URL...
    I know all about triggers and stuff, no problem.
    But how can I do this... looked all over the web, and all over the help files.
    Any suggestions?

    Forms has a web.show_document, if it's that what you are looking for.

  • Open Windows Explorer with path from IR?

    Hi.
    Using latest version of APEX on Oracle XE 10.
    I have a database that has fields with UNC paths in. I want to be able to launch Windows Explorer with these paths from an Interactive Report... is this possible?
    Thanks in advance,
    Adam.

    Hi, and thanks for the response.
    I'm not sure if I've been clear in what I was asking as this seems like overkill at first glance - or maybe I just don't get what's actually involved! ;-)
    E.g. Say my data was
    Analyst : Mr Any Body
    Date: 04/01/2012
    Path: \\server1\vol1\DirA\Subdir1
    I'd like the Path field to appear as a hyperlink that opens Windows Explorer with that path in the address bar. Is this not possible with javascript or something? Even if it is, I need some help with how/where to plug that into my Interactive Report.
    If I used something other than an Interactive Report (e.g. just a regular form), could I code a button to do this task?
    Thanks again,
    Adam.

  • I can open e-mails with a picture attachement on my MAC, but not on my iPAD

    I Can open my AOL e-mails with picture attachments on my MAC, But they will on open on my iPad2. I get a message that says, mixed media and cannot open. Is there some setting I need to change on the iPad2?

    What format are the photos in? Are they jpeg format? They should open if they are, but the message "mixed media" makes me question what the format is.

  • Spam ? icloud sorting out mails with specific url

    hi there,
    after playing around with mails my wife didnt receive in icloud account i found that icloud is surpressing mails with http://www.bbh-basketball.de/ in body text.
    That url is pointing to a website about basketball (german). No sex, no weapons , no whatever ....
    Any idea why this happens ?
    Knut.

    Hello Kehring,
    It sounds like you have a legitimate URL that you know is safe that is being filtered as Spam in iCloud Mail. Take a look at this information from the following article named:
    iCloud: Identifying and filtering junk mail
    http://support.apple.com/kb/ht4899
    Troubleshooting false-positives
    Due to the complexity of accurately detecting and filtering out junk mail, on rare occasions a legitimate email from a friendly source may be blocked from reaching your Inbox. This is called a false positive.
    If you feel that a legitimate email message was inadvertently filtered, you may want to ask your friend to send a follow-up email to verify that the issue exists. If you notice that multiple email messages are being delayed, bounced, or not delivered, contact iCloud Support. Also make sure to check your Junk folder for email messages that were incorrectly marked as junk mail. To check your Junk folder at iCloud.com, choose the Mail application and click the Junk folder in the sidebar. Email messages in the Junk folder are automatically deleted after 30 days.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • When I open e-mails with fox f the pictures are gone! must use Explorer

    When I receive E-mails with pictures the e-mail opens but the picture is a blank square with a small icon in the left corner. If I close foxfire and load explorer the E-mail opens with the pictures showing

    Hello ,
    follow these steps to unblock images:
    *Go to Tools > Options. Click the '''Content''' tab.
    *In the Content section, next to '''Load images automatically''', click the '''Exceptions''' button.
    *Now, find the site you want to re-allow images for, click it and hit the '''Remove''' button.
    Other advice can be found in the [[Images or animations do not show]] article.

  • Mail crashes upon opening of mails with attachments

    This happens all the time since i bought it two weeks ago. everytime i try opening one with an attachment, mail would just hang and crash. does anybody face this problem too? How do i solve this?

    that's it - I ran the updater - and I believe I have been able to use it all day without the program crashing when it encounters an attachment.
    one goofy thing I noticed, for the first time, there appear to be two applications folders on my start-up drive (1) in my user folder (2) in the "main" hard drive folder.
    MAIL is in both - I believe the "main" one was updated; when I turned on the "user" MAIL it crashed when I opened an eMail with an attachment; when I opened the same eMail with the "main" mail there was no problem.
    now what does this tell us?
    thanks again!
    will

  • Why can't I open yahoo mail with safari?

    As of July 29 I can no longer open Yahoo mail in Safari.  It keeps asking for user name and password, but when I enter it the same screen keeps coming up.

    Clear Safari, then close it completely and reset the iPad.
    Go to Settings>Safari>Clear Cookies and Data.
    Now close Safari. In order to close apps in iOS 7, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Send mail with attachment from the uploaded file

    hi,
    From a form thread i got the following code to send mail with attachment with the file uploaded from the file upload ui element.
    public void onActionLoadFile(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionLoadFile(ServerEvent)
         WDWebResourceType FileType = null;
         String FileName = new String();
              //get attribute info for context attribute 'FileUpload'
              IWDAttributeInfo attributeInfo =
                   wdContext.getNodeInfo().getAttribute(
                        IPrivateEmailView.IContextElement.FILE_UPLOAD);
              //get modifiable binary type from the attribute info,requires type cast.
              IWDModifiableBinaryType binaryType =
                   (IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();
              IPrivateEmailView.IContextElement element =
                   wdContext.currentContextElement();
              //if a file in the 'FileResource' attribute exists
              if (element.getFileUpload() != null) {
                   try {
                        String mimeType = binaryType.getMimeType().toString();
                        byte[] file = element.getFileUpload();
                        //get the size of the uploaded file
                        element.setFileSize(this.getFileSize(file));
                        //get the extension of the uploaded file
                        element.setFileExtension(binaryType.getMimeType().getFileExtension());
                        //NOTE: context attribute 'FileName' must not be set
                        //because the FileUpload-UI-element property 'fileName'
                        //is bound to it. Consequently the fileName is automatically
                        //written to the context after file upload.
                        //report success message
                        wdComponentAPI.getMessageManager().reportMessage(
                        IMessageEmailComp.SF_UPLOAD,
                             new Object[] { binaryType.getFileName()},
                             false);
                        FileType = binaryType.getMimeType();
                        FileName = binaryType.getFileName();
                   } catch (Exception e) {
                        throw new WDRuntimeException(e);
              //if no file in the 'FileResource' attribute exists
              else {
                   //report error message
                   IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
                   msgMgr.reportContextAttributeMessage(
                        element,
                        attributeInfo,
                        IMessageEmailComp.NO_FILE,
                        new Object[] { "" },
                        true);
              //clear the FileResource context value attribute
              //element.setFileUpload(null);
              String URL;
              URL = this.CreateAndGetPathFileUpload(
                                  wdContext.currentContextElement().getFileUpload(),
                                                      FileName);
    //          if (URL.length() == 1){
    //               //ERRORE
         wdContext.currentContextElement().setPATHFileUploaded(URL);
        //@@end
      public boolean send( java.lang.String subj, java.lang.String mess, java.lang.String dest, java.lang.String attach, java.lang.String FileName )
        //@@begin send()
         InitialContext ctx = null;
         Address[] address = null;
         Message msg = null;
         Session sess = null;
         MimeBodyPart bodyPart = null;
         Multipart mp = null;
         // "141.29.193.71" == milvl2ja.icn.siemens.it (SMTP di Siemens)
           try {
              Properties props = new Properties();
              props.put("domain","true");
              ctx = new InitialContext(props);
              sess = (Session) ctx.lookup("java:comp/env/mail/MailSession");
              msg = new MimeMessage(sess);
              IWDClientUser utente = WDClientUser.getCurrentUser();
              String senderEmail = utente.getSAPUser().getEmail();
              InternetAddress addressFrom = new InternetAddress(senderEmail);
              msg.setFrom(addressFrom);     
              String EmailDEST = dest;
              InternetAddress addressTo = new InternetAddress(EmailDEST);
              msg.setRecipient(Message.RecipientType.TO, addressTo);
              msg.setSubject(subj);
    //          if ((mess != null) && (mess.length()>0)) {
    //                 msg.setContent(mess, "text/plain");
    //            } else {
    //                 msg.setContent("", "text/plain");
              //Gestione ATTACHMENT...
              String attachedFileName = new String(wdContext.currentContextElement().getFileName());
              boolean hasAttachment = (attachedFileName != null) && (attachedFileName.length() > 0);
              boolean isMultiPart = (mess != null) && (mess.length() > 1);
              //adding an attachment makes the message multipart
                 if (isMultiPart || hasAttachment) {
                    mp = new MimeMultipart();
                    // add text parts
                      if (mess != null) {
                         for (int i = 0; i < mess.length(); i++) {
                           bodyPart = new MimeBodyPart();
                           bodyPart.setContent(mess,"text/plain");
                           mp.addBodyPart(bodyPart);
                    //attach the file to the message if needed
                    if (hasAttachment) {     // avoid the case with no text parts
                         bodyPart = new MimeBodyPart();
                           bodyPart.setContent("Allegato incluso nel messaggio.","text/plain");
                           mp.addBodyPart(bodyPart);
                           // the part with the file
                           FileDataSource fds = new FileDataSource(attach);
                           MimeBodyPart attachmentBodyPart = new MimeBodyPart();
                        attachmentBodyPart.setDataHandler(new DataHandler(fds));
                        //URL URLattachedFileName = new URL(attach);
                        //attachmentBodyPart.setDataHandler(new DataHandler(URLattachedFileName));
                           attachmentBodyPart.setFileName(FileName);
                           mp.addBodyPart(attachmentBodyPart);
                    msg.setContent(mp);
                 } else {
                    if ((mess != null) && (mess.length() > 0)) {
                         msg.setContent(mess, "text/plain");
                    } else {
                         msg.setContent("", "text/plain");
              //fine ATTACHMENT 
              msg.setSentDate(new GregorianCalendar().getTime());
              msg.saveChanges();
              address = msg.getAllRecipients();
              Transport.send(msg, address);
           } catch (Exception e) {
                 e.printStackTrace();
                 return false;
           return true;
        //@@end
    When i used the same code in my application i am gett ing error in many places..
    1)FileDataSource fds = new FileDataSource(<b>attach</b>);
    attach cannot be resolved
    2)attachmentBodyPart.setFileName(<b>FileName</b>);
    fliename cannot be resolved
    3)byte[] file = element.getFileUpload();
    type mismatch cannot convert sting to byte[]
    4)element.setFileSize(this.getFileSize(file));
    method getFileSize() is undefined
    5)element.setFileExtension(binaryType.getMimeType().getFileExtension());
    method getFilExtension() is undefined
    6)URL = this.CreateAndGetPathFileUpload(wdContext.currentContextElement().getFileUpload(),FileName);
    method CreateAndGetPathFileUpload() is undefined.
    7)wdContext.currentContextElement().setPATHFileUploaded(URL);
    from the above error i can understand that only i have got the part of the code.
    Please send me the complete coding.
    some method definitions are missing....
    Please help me to send the mail with attachment from the file uploaded from the file upload ui element.
    Thanks in advance,
    shami.

    hi,
    I got this from the following link
    Re: Attaching an excel file
    plz help me ...
    I am using 2004s with nwds 7.0.06.
    also tell me what should be the type of the context variable FileUpload
    Thanks in advance,
    shami.

  • How to Send mail with an attachment of html file?

    Hi all,
    i am using Oracle 11g Database R1 on Windows 2003 Server R2. I am using the below script for sending a mail with an attachment
    declare
    vInHandle utl_file.file_type;
    flen number;
    bsize number;
    ex boolean;
    l_Output raw(32767);
    fname varchar2(30) := 'TEXT.TXT';
    vSender varchar2(30) := '[email protected]';
    vRecip varchar2(30) := '[email protected]';
    vSubj varchar2(50) := 'Weekly Invoice Report';
    vAttach varchar2(50) := 'TEXT.TXT';
    vMType varchar2(30) := 'Content-type: text / html';
    begin
    utl_file.fgetattr('ORALOAD', fname, ex, flen, bsize);
    vInHandle := utl_file.fopen('ORALOAD', fname, 'R');
    utl_file.get_raw (vInHandle, l_Output);
    utl_file.fclose(vInHandle);
    utl_mail.send_attach_raw(sender => vSender
    ,recipients => vRecip
    ,subject => vsubj
    ,attachment => l_Output
    ,att_inline => false
    ,att_filename => fname);
    end;
    this Script is Working Fine for text based file only. but i want to send a html file from oracle directory. is it possible? .... Please Advice me... if it possible please provide a sample code or any Link Related to this.
    Thank You So Much for Your Help
    Shan

    if it possible please provide a sample code or any Link Related to this.Perhaps the maildemo is of use to you, read more threads about it's use here:
    http://forums.oracle.com/forums/search.jspa?objID=f75&q=maildemo
    OTN code sample link:
    https://codesamples.samplecode.oracle.com/servlets/tracking?id=S516

  • How to Open multiple form with only one screen painter file

    Hi all ,
    I want to reopen the form without closing the active form ,i want to use same srf file ..
    I have already try it but form already exist error occur .
    pl help me , how to do it ?
    how to open multiple form with same srf file without closing active forms .
    thanks in advance,
    msw

    <?xml version="1.0" encoding="utf-16" ?>
    <Application>
      <forms>
        <action type="add">
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">            
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>          
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE1" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
        </action>
      </forms>
    </Application>

  • I can not open yahoo mail with this upgrade. I get "The requested URL not found" every time I try

    Since upgrading to Firefox 4 I can not open my yahoo e-mail account. I can read most articles in yahoo but every time I try to check my e-mail (or anybody tries to check theirs) we get the same message "The requested URL not found" I am very disappointed because I am forced to use explorer to check my e-mail and I have not used explorer for years because I don't trust it. Please help.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

Maybe you are looking for

  • How to get parameter and add it to hyperlink using struts tag?

    Hi everyone: There is a.jsp pass a parameter to b.jsp.How to get the parameter in b.jsp using struts Tag?I also want to add the parameter to a hyperlink in b.jsp.For example in b.jsp <html:link forward=.....>cxxxx</html:link>.How to add the parameter

  • Vendor Payment in parts

    Hello All, I have a scenario where I need to pay the vendor invoice in parts , for e.g., pay Rs.90 on a particular day, and rest of the Rs.10 after 2 days. Want to know how is it possible in SAP, is there some configuration settings available. Please

  • Mouse will not scroll

    My mouse scroll wheel no longer works on firefox. It works on all other programs. I tried restarting my computer, and I also adjusted the mouse settings on about:config, but neither fixed the problem. Please help!

  • Nokia n97, iCal calendar sync

    Hi guys, I have an N97 phone (witch with all his small problems and Smbian issues is quite good and a very good otption in terms of an organiser / mobile email / smartphone) and I am trying to sync the calendar with a iCal (.ics) feed from a GTD (Get

  • Photosmart 2575 all-in-one,does not print, the paper rolls too far, jam message

    When I try to print or copy, the printer takes a sheet but it doesn't stop where it normally stops to start printing. After that nothing happens, only got a jam message