13 Replies Latest reply on Aug 14, 2016 3:49 PM by Bill Robinson

    BLCLI sendEmailWithAttachment is not working

    Monoj Padhy

      Hi All,

       

      I am trying to send email with attachment using blcli sendMailWithAttachment but getting error like specified file not found.

       

      blcli_execute Email sendMailWithAttachment bladelogic-noreply@mycompany.com monoj.padhy@mycompany.com "BL_Server_Inventory_UNIX: ${SERVER_GROUP}" "Attached is the UNIX Server Inventory Report ${SERVER_GROUP}." "${FILEPATH}" "${FILENAME}"

       

      When tried w/ hard coded value as below it worked.

      blcli_execute Email sendMailWithAttachment bladelogic-noreply@mycompany.com monoj.padhy@mycompany.com "BL_Server_Inventory_UNIX: ${SERVER_GROUP}" "Attached is the UNIX Server Inventory Report ${SERVER_GROUP}" "/tmp/" "mytest.txt"

       

      However, When tried to send the actual file it again failed(even w/ hard coded values)

      blcli_execute Email sendMailWithAttachment bladelogic-noreply@mycompany.com monoj.padhy@mycompany.com "BL_Server_Inventory_UNIX: ${SERVER_GROUP}" "Attached is the UNIX Server Inventory Report ${SERVER_GROUP}" "/tmp/" "BLReportUNIX_2016.08.02.56.309850000.csv"

      BSA Version : 8.3.02.407

       

      This is quite strange behaviour. please provide your valuable suggestions.

       

      Regards,

      Monoj

      bladelogic-noreply@mycompany.com monoj.padhy@mycompany.com