Re: NSSharingService and default mail client
Re: NSSharingService and default mail client
- Subject: Re: NSSharingService and default mail client
- From: Jens Alfke <email@hidden>
- Date: Sun, 02 Jun 2013 16:56:54 -0700
On Jun 2, 2013, at 9:37 AM, Martin Hewitson <email@hidden> wrote:
> OK, after reading some about this, it seems that one can't have attachments with a mailto: handler on OS X. Is that correct?
Yes, as far as I know.
> If so, I'm back to my original question: how can I robustly send a mail with the user's default mail client and be able to fill in all the details (recipients, subject, body including attachments). And I need this to work on 10.7 and 10.8. Anyone any good ideas? Seems like this should be a solved problem.
You can’t do this in a way that supports all mail clients, because there isn’t a common API they all implement for this. You can probably use AppleScript to drive Mail to do this. I don’t know whether any other mail clients support the same suite of AppleEvents.
(And anyway, in my experience the majority of people who don’t use Apple Mail are using a web-based client like Gmail or Hotmail; in that case there isn’t any local app you could talk to to send a message.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden