• 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: Sending mail from an application launched as a startup item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending mail from an application launched as a startup item


  • Subject: Re: Sending mail from an application launched as a startup item
  • From: Quinn <email@hidden>
  • Date: Wed, 3 Oct 2007 09:43:06 +0100

At 19:16 -0400 2/10/07, Peter Sichel wrote:
Typically a "network administrator" would configure the app on
a server machine, but doesn't want to remain logged in 24x7.
The whole point of InternetConfig is to provide a repository
for shared network settings, but there doesn't appear to be
a clear model for defining system wide settings.

Overall, I think it would be better to:

a) use your own code to send mail

b) store the preferences to do this in your own preferences

The Message framework is not something we actively promote the use of (the plan is for it to be officially deprecated in Leopard). Using the Message framework from a daemon is not something we support (see table 2 of TN2083). If you look at the framework's linkage, you'll see that it links to AppKit!

Alas, I don't know of any good alternative for sending email. Certainly, there's no Apple-created API for this (except the Message framework, of course). If your needs are modest, you can just write your own code.

At 16:34 -0400 2/10/07, Peter Sichel wrote:
My application also supports an option to run as a Mac OS X startup
item.

Please tell me that this is factored out, and that you don't actually run your application as a startup item. That's /such/ a bad idea.


S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Sending mail from an application launched as a startup item (From: "Peter Sichel" <email@hidden>)
 >Re: Sending mail from an application launched as a startup item (From: Dave Camp <email@hidden>)
 >Re: Sending mail from an application launched as a startup item (From: "Peter Sichel" <email@hidden>)

  • Prev by Date: Re: Problems listening on a privileged port
  • Next by Date: Dictionary - SubDictionary of SCNetorkConnection
  • Previous by thread: Re: Sending mail from an application launched as a startup item
  • Next by thread: multiple ethernet ports, private subnet and public network
  • Index(es):
    • Date
    • Thread