Re: Cocoa and email (SMTP/POP3) (thanks)

2009-06-25 Thread Isaac Alston
Hi, I just want to say thank you to everyone who responded to my question. -- Isaac ___ 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

Re: Cocoa and email (SMTP/POP3)

2009-06-24 Thread David Blanton
Look at CFNetwork Programming Guide. See CFWriteStreamRef and CFReadStreamRef. You can write a simple SMTP process in one page of code. Contact me off list if you want some code. db On Jun 24, 2009, at 1:02 PM, Jeremy Pereira wrote: Everybody seems to have forgotten that this threa

Re: Cocoa and email (SMTP/POP3)

2009-06-24 Thread Jeremy Pereira
Everybody seems to have forgotten that this thread was started by somebody who was attempting to write a mail client of their own, for learning purposes. Therefore, it strikes me as slightly pointless to implement it by scripting to another mail client. The correct way for a mail client

Re: Cocoa and email (SMTP/POP3)

2009-06-24 Thread David Hoerl
Look at the EDMessage class: http://www.mulle-kybernetik.com/software/EDFrameworks/ . You need its sibling class EDCommon too. With that Cocoa framework, you can send email through a SMTP access point using various types of security - it works with .mac and google too. I know these work as I

RE: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Jeff Laing
cker.com/software/email-apps/how-to-use-gmail-as-your-smtp-server-66.php -Original Message- From: Andrew Farmer [mailto:andf...@gmail.com] Sent: Wednesday, 24 June 2009 3:27 PM To: Jeff Laing Cc: Nick Zitzmann; cocoa-dev@lists.apple.com Subject: Re: Cocoa and email (SMTP/POP3) On 23 Ju

Re: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Andrew Farmer
On 23 Jun 2009, at 21:52, Jeff Laing wrote: Ok, I'll bite. How does the mail server that Mail.app is talking to distinguish between Mail.app and /usr/sbin/sendmail ? They both presumably just talk SMTP ? Mail.app is configurable by the user to connect to a specific relay mail server, po

RE: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Jeff Laing
patialinfo@lists.apple.com] On Behalf Of Nick Zitzmann Sent: Wednesday, 24 June 2009 2:14 PM To: Dave DeLong Cc: cocoa-dev@lists.apple.com Subject: Re: Cocoa and email (SMTP/POP3) On Jun 23, 2009, at 9:42 PM, Dave DeLong wrote: > 3.5: Use /usr/sbin/sendmail: Create an NSTask that launches

Re: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Nick Zitzmann
On Jun 23, 2009, at 10:13 PM, Nick Zitzmann wrote: I can't really recommend doing that in a non-internal app, though, because if the user only has a static IP address and no domain name, then a good deal of mail servers won't accept the mail from the host unless they identify using a fake

Re: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Andrew Farmer
On 23 Jun 2009, at 20:42, Dave DeLong wrote: 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. That doesn't work for users behind residential ISPs that block port 25, or

Re: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Dave DeLong
That's a good point, and one that I brushed past because I was using it for an internal app. So yeah: use at your own risk. =) Dave On Jun 23, 2009, at 10:13 PM, Nick Zitzmann wrote: On Jun 23, 2009, at 9:42 PM, Dave DeLong wrote: 3.5: Use /usr/sbin/sendmail: Create an NSTask that launch

Re: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Nick Zitzmann
On Jun 23, 2009, at 9:42 PM, Dave DeLong wrote: 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 can't really recommend doing that in a non-internal app, though, be

Re: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Dave DeLong
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

Re: Cocoa and email (SMTP/POP3)

2009-06-23 Thread Nick Zitzmann
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 a