• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Emailing from a daemon process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Emailing from a daemon process
      • From: Aandi Inston <email@hidden>
References: 
 >Emailing from a daemon process (From: Carl Hoefs <email@hidden>)

  • Prev by Date: Re: Emailing from a daemon process
  • Next by Date: Re: Emailing from a daemon process
  • Previous by thread: Re: Emailing from a daemon process
  • Next by thread: Re: Emailing from a daemon process
  • Index(es):
    • Date
    • Thread