Re: Emailing from a daemon process
Re: Emailing from a daemon process
- Subject: Re: Emailing from a daemon process
- From: Jonathan Mitchell <email@hidden>
- Date: Thu, 07 Jul 2016 20:00:37 +0100
> On 7 Jul 2016, at 17:13, Carl Hoefs <email@hidden> wrote:
>
> I have a daemon app built on Foundation (aka "command line tool") running in the background and I need it to issue a textual email on certain conditions.
>
> The solutions for emailing that I've been able to find (NSWorkspace, NSSharingService, LSOpenCFURLRef) all involve launching an email client like Mail.app, which is inappropriate for a backgraound daemon process.
>
> Is there a way to fire off a simple email from an ObjC Foundation-only app running in the background on OS X 10.10.5 (not Server)? I'm told that ages ago there was a handly class named NSMailDelivery, but it's long gone...
Not sure if this will pass muster. It seems reasonably alive in some forks.
https://github.com/MailCore/MailCore
It is a framework though.
J
_______________________________________________
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