I’m looking to program a button in my mac app to open the default email client and compose a new email with a pre-programmed address and subject.
The ideal functionality I am looking for is the same behaviour as that of the mailto: function when you click on an email address in safari.
I’d be grateful if someone could point me in the direction of some code that might work, or provide me with an example.
Many thanks.
You can create a URL and open it:
Apple has more of an explanation in this technote.