Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, June 30, 2019 9:10 AM
Hello,
I need to be able to attach pictures to emails for an app I am building. I tried using mailto in powershell, as in, Start-Process "mailto:?body=some text&attachments=c:\users\igweo\celeste.png"; but this doesn't work.
Is there any way to do this.
All replies (2)
Monday, July 1, 2019 6:48 AM âś…Answered
Hi,
The mailto protocol doesn't support an attachment option.
If you want to access the default email client, you can use MAPI32.dll. There is an answer on Stack Overflow, The project link post by Alex is an sample to use MAPI.
Best regards,
Drake
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Monday, July 1, 2019 10:21 AM
Thanks a lot