I want to send an Excel workbook as a email attachment on on automated basis from the Command line of MacOS via Outlook, has to be via Outlook to get through all the required authentication.
I am already successfully creating the email with this command: /usr/bin/open -b com.microsoft.outlook 'mailto:[email protected]?subject=reports&body=Please find attached reports' but I cannot figure out how to pass an argument to attach a file
mailtoprotocols does not support attachments. You can only doto(the defaultmailtoparameter),cc,bcc,subject,body. No attachments or HTML body.