• 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: Cocoa and email (SMTP/POP3)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa and email (SMTP/POP3)


  • Subject: Re: Cocoa and email (SMTP/POP3)
  • From: Dave DeLong <email@hidden>
  • Date: Tue, 23 Jun 2009 21:42:47 -0600

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 (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: Cocoa and email (SMTP/POP3)
      • From: Andrew Farmer <email@hidden>
    • Re: Cocoa and email (SMTP/POP3)
      • From: Nick Zitzmann <email@hidden>
References: 
 >Cocoa and email (SMTP/POP3) (From: Isaac Alston <email@hidden>)
 >Re: Cocoa and email (SMTP/POP3) (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Cocoa and email (SMTP/POP3)
  • Next by Date: Re: [Q] CFStringGetCStringPtr( ..., kCFStringEncodingUTF8)
  • Previous by thread: Re: Cocoa and email (SMTP/POP3)
  • Next by thread: Re: Cocoa and email (SMTP/POP3)
  • Index(es):
    • Date
    • Thread