> > Is there a way to fire off a simple email from an ObjC Foundation-only app running in the background
"Just" sending email seems like such a simple thing. But remember, a Mac doesn't come out of the box able to send mail. It only gets that ability if it is set up to do so (during initialisation, or later in a mail app). This setup will include an SMTP server, and may well include personal login information to that server. Macs do not (unless I missed it: would be useful) set up a generic configuration that can be used to send mail. So, if it is set up you would have to either interface with the email app (if you know what it is), or read and use the preferences of the app (if they are usable, and you'd rather hope security info wasn't). Bear in mind too, that the user may not set up any email app, so there is nothing to build on at all. I don't have any need to send email on most Macs, so I don't set it up at all. On others, I use webmail like millions of others; again, nothing to tap into, and the webmail service might not even offer SMTP. Now, if you are in a position to do so you can ask your user to set up mail: you need an SMTP server, an optional port, and perhaps to support security options securely (keychain?) Sending non-secure email to SMTP is the absolutely trivial part (unless you want attachments). Bear in mind many users will not have an SMTP server they can even give you and may be stuck. Lastly, sending SMTP traffic to port 25 is exactly the sort of thing that malware does, so you are likely to hit blocks now or in the future. Sorry if this is repeating points already made. _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
