This works for me in the Command Window: loOutlook = CreateObject("Outlook.Application") loMessage = loOutlook.CreateItem(0) loMessage.To = "some...@test.com" loMessage.Subject = "Message subject" loMessage.Body = "message body" loMessage.Attachments.Add("myfile.pdf") loMessage.Display(.t.)
It will display the message and you can Send or Cancel from there. Outlook version is 1902 -- Alan Bourke alanpbourke (at) fastmail (dot) fm _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/84b0e79f-cc1c-4b9b-a964-cb3345c47...@www.fastmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.