• 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: Message.framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Message.framework


  • Subject: Re: Message.framework
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 29 Nov 2005 17:47:26 +0100


Am 29.11.2005 um 15:34 schrieb Graham J Lee:
Thanks, these and other archive searches only showed that no-one had got further than me; i.e. it appeared that the user needed to have at least one account in Mail.app. I've found that they at least don't need to be physically logged in at the console which is something...however it would be nice if the application (or some global config like a /Network/Library, /System/Library or /Library setting) could provide a "if there's no per-user SMTP configuration, stick this one in your pipe and smoke it" dictionary.

That's not supported for a good reason: A server that allowed this would essentially be an open relay. And if you don't want to use an open relay, you'd need a real e-mail account on some server that at least supports SMTP (usually you get POP3 for free with those, but you don't seem to need that).


It currently seems like there's no reliable way to do email from headless Cocoa without (i)enabling a local smtpd [seems like a bit of overkill and a potential security risk] (ii)having a 'real' user set up a Mail.app account for the desired uid [see note to (i)] (iii)opening a socket to a remote mail server and sending data thus [so much for "simple things simple"...].

No, there's now built-in SMTP client in MacOS X right now save for Message.framework, and Apple seems to have not made any updates to that since it was brought over from NeXT/Rhapsody. I don't know what you want to do in particular that you need SMTP support? Sometimes you can have a server-side CGI on your product home page that then uses the SMTP server there (i.e. sendmail) to actually send the message. But this is really only safe as long as it goes to a fixed address, because otherwise someone would fish the script's parameters out of your app and use it to send e-mails to other people through your script (see "open relay" above).


 What are you trying to do? Would a PHP script or so help?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Message.framework
      • From: Graham J Lee <email@hidden>
References: 
 >Message.framework (From: Graham J Lee <email@hidden>)
 >Re: Message.framework (From: j o a r <email@hidden>)
 >Re: Message.framework (From: j o a r <email@hidden>)
 >Re: Message.framework (From: Graham J Lee <email@hidden>)

  • Prev by Date: Re: Core Data Fetch request very poor performance ??!
  • Next by Date: Re: Is Apple's singleton sample code correct?
  • Previous by thread: Re: Message.framework
  • Next by thread: Re: Message.framework
  • Index(es):
    • Date
    • Thread