3.5: Use /usr/sbin/sendmail: Create an NSTask that launches /usr/sbin/ sendmail, configures the headers, and then just pipes your email through the task's standardInput.

I had to do this earlier today and it works pretty well. You obviously can't do anything too complex with it, but in my case, I was just sending a plaintext report email and it worked great. I found the basic pattern here: http://www.cocoadev.com/index.pl?SendingEmailMessages

Cheers,

Dave

On Jun 23, 2009, at 9:38 PM, Nick Zitzmann wrote:


On Jun 23, 2009, at 11:25 AM, Isaac Alston wrote:

How do I deal with email in Cocoa?


You either:
1. Use a third party framework or library
2. Use the Scripting Bridge to communicate with an existing mail client
3. Do the work yourself

There are no built-in network protocols other than FTP and HTTP(s), and they're only there because they provide significant utility to most programs.

Nick Zitzmann
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to