Hi,
I have a problem with email attachments.
My application allows me to choose the filepath of the file I wish to attach to my email e.g. //servera/foldera/file.txt
I then use Mstm.SendMail to email the user, with the filepath assigned to parameter 6 (attachment).
More often or not, the email fails with a security access error message. I'm guessing this is because although the User has access to choose which file to attach, the ID which sends the email out does not have access to the server/path.
A possible solution could be to store the file in Metastorm tables as an attachment and then link to this as the attachment to send.
However, despite some digging (I'm new to Metastorm), I'm unsure how to code this.
Could anyone give me an example of:
a) given you have the pathname of the file you wish to attach, what is the correct way to save this file as an attachment to the Metastorm tables?
b) the correct notation to then locate and pass this saved attachement file to a user via email?
I should add that I'm using Metastorm 9.2.
Any help or advice much appreciated! :-)