Script to insert name and subject automatically into email
Hi - I am trying to set a script to automatically insert the required name and subject into an email where a pdf record is attached.
I have used a script to save the required record to an external drive and to open and attach to an email.
However, when I use the 'send email' function in the script, this opens a separate email. I don't seem to be able to use this function either to attach the correct saved pdf email and then save to the external drive.
My thinking was that I should set the script to save the pdf to the file, then set the function to 'send mail'. But, in doing this I was not sure how to script the step where the email could retrieve the saved file - as each pdf saved has a unique name scripted in.