Forum Discussion

Shivangi's avatar
Shivangi
New Contributor III
10 months ago

Attaching file to the Mail

Hi, Is it possible to attach a file from the public folder to the mail using the function, BRApi.Utilities.SendMail(si, emailConnectionName, toEmailAddresses, subject, body, attachmentFilePaths) ...
  • sameburn's avatar
    17 days ago

    Hi Shivangi. This is expected behaviour. The SendEmail BRApi is expecting the file path to be a real file path e.g represented by Fileshare on your server(s). Whereas the Application file path is stored in the database. So not a real file path per se. 

    So the solution (as you have already discovered) is to use file paths that refer to Fileshare file paths and everything works as expected.

    Hope this helps.

    Sam