shortcut for sending a file as email attachment to a particular recipient.
Is it possible to make a shortcut for sending a file as email attachment to a particular recipient in one go using fastkeys?
If you use Outlook then this should work (Type: Command):
Code: Select all
m:=ComObjActive("Outlook.Application").CreateItem(0)
m.Subject:="Attachment"
m.To:="abc@123.com"
m.Body:="Please find attached..."
m.attachments.add("C:\Folder\file.txt")
m.Display
Thank you very much for the reply. Is it possible using default mail app of windows 10?
Does the version of Outlook make a difference or should this work with all of them?
I think it should work in all recent Outlook versions. I don't know if it's possible to automate Windows 10 Mail application.