Unable to attach a remote files in emails

 7 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Accentia ME
Basic Member
Posts: 13
Basic Member
    Hi everybody,
    When I try to attach a file on a remote server in a MAIL node, the system sends emails without attachment. I want to know if this is a configuration problem or a limitation of the PFI.

    In this exemple, i set two attached file, the first one is local, and the second one is on a remote server.
    when i execute the flow, only the local file appear in email .

    BR,
    Hicham
    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      Hi Accentia ME - When you say the file is on a remote server, what exactly do you mean? Is it on a folder that is visible on the Pflow server, even if it doesn't "really" live there - like on a share of some sort? How are you referencing the file?

      I've never had any trouble linking to "external" documents, but I have to be able to see them on the server (i.e. using a directory listing of some sort). If you are creating the file using Pflow, then you should be able to reference them - unless you used an FTP or something to move them.
      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      Accentia ME
      Basic Member
      Posts: 13
      Basic Member
        Hi Kelly,
        Thank you for your response..
        My file isn't placed on PFI server, but on an other one (in a shared folder).
        I tried to create a network drive on my server from PF server or to use IP directly in the Mail box, but it didn't work.
        Accentia ME
        Basic Member
        Posts: 13
        Basic Member
          I also tried to use a sysCommand to copy the file into PF server and then atteched it in a Mail node, but the commande copy didn't move my file. even if it worked with DOS.
          Kyle Jorgensen
          Veteran Member
          Posts: 122
          Veteran Member
            Is the remote file system mounted into the local filesystem? If on windows, do you have the remote system mapped to a drive on the local PFI server? If on unix, do you have the remote system mounted somewhere in the local filesystem (via samba or nfs or some other method)?
            Accentia ME
            Basic Member
            Posts: 13
            Basic Member
              I'am on a windows system, and i have effectively mapped the remote system to a drive in the local server.
              Woozy
              Veteran Member
              Posts: 709
              Veteran Member
                Strange. The only thing I can think of is that PFI isn't able to find the file, for whatever reason. Maybe the file path or filename don't match exactly, or it has a special character, or something. The fact that syscommand can't find it either is interesting.

                Are you sure (really sure) that user "lawson" (or whatever user PFI is running as) has rights to the folder and file? Maybe try using the FileAction node to write a file to that folder and then read it from that folder.

                If that isn't the issue... I'm sure you've tried these things, but just to be sure... Are you getting any errors or "undefined" in the log? Is the attachment filename hard-coded in the node, or is it in a variable? If it is currently hard-coded, I'd try putting it in a variable and echoing it back out within the flow to be sure something funky isn't happening there. I'd also try (for testing) including the filename variable in the body of the email, so the email will show the path where it is trying to find the file. This should help you confirm that it is looking in the right place, and then confirm that the file is actually there.

                Good Luck
                Kelly Meade
                J. R. Simplot Company
                Boise, ID
                John Henley
                Posts: 3353
                  Remember that a mapped drive on a remote system is mapped on a per-user/per-process basis, so while you might have it mapped for you, that doesn't mean it is accessible to other processes.
                  Thanks for using the LawsonGuru.com forums!
                  John