How to send the last saved file using SMTP?

Hello guys, im working in a project where i have to send the last saved excel file to a person using the smtp option, how can i do this?

Analyse the directory of the Excel workbooks for the last saved file

directory.getfiles("YourFolderPath)

you can then get the last write time for each

Select the file which has the most recent write time.

SMTP Activity then has the option to attach the document

1 Like

Thank you ill try this one right now!