3 Replies Latest reply on Apr 10, 2015 6:35 AM by Bill Robinson

    sendMailWithAttachment

    Antonio Caputo

      I want to send a myfile.csv file produced by a nsh script job to my email address.

       

      I have a role with no access to the app server (it's hidden to my bsa role) so I produce the myfile.csv on a server called my_server that I can see via bsa console.

       

      When I use:

       

      blcli Email sendMailWithAttachment bsa_email@mycompany.com my_email@mycompany.com "Log files" "Attached logs" "//my_server/c/tmp/" "myfile.csv"

       

      I get the following:

       

      Command execution failed.  Cannot use remote path for file transfer. Source path is: //my_server/c/tmp/myfile.csv

       

      The same happens if I use:

       

      blcli Email sendMailWithAttachment bsa_email@mycompany.com my_email@mycompany.com "Log files" "Attached logs" "/c/tmp/" "myfile.csv"

       

      In this case I have:

       

      Command execution failed. File provided does not exist

       

      What's wrong in it? Am I bound to store the file in the app server to use the sendMailWithAttachment?

       

      Thanks,

      A.