Opening native mail application with content
Posted: Wed Apr 10, 2024 6:32 pm
Hi all,
I need the ability to open a new email on a clients computer that has information plugged into it, including an attachment, text, who its from, and subject. The only way I can think of doing it is using executeProgram('open /path/to/information -a mail.app), but I'm not sure how to get it to open on the clients computer, with all of that information. Is there a way to write a file which will open mail with all of that information (for example a JSON file), and is there a way for it to execute on the clinets machine instead of the server?
I think they all use mac, so I won't need to write it for different programs.
Thanks,
Alasdair
I need the ability to open a new email on a clients computer that has information plugged into it, including an attachment, text, who its from, and subject. The only way I can think of doing it is using executeProgram('open /path/to/information -a mail.app), but I'm not sure how to get it to open on the clients computer, with all of that information. Is there a way to write a file which will open mail with all of that information (for example a JSON file), and is there a way for it to execute on the clinets machine instead of the server?
I think they all use mac, so I won't need to write it for different programs.
Thanks,
Alasdair