Re: Sending mail from Cocoa Apps
Re: Sending mail from Cocoa Apps
- Subject: Re: Sending mail from Cocoa Apps
- From: Scott Anguish <email@hidden>
- Date: Mon, 20 May 2002 05:58:49 -0400
On Monday, May 20, 2002, at 04:30 AM, email@hidden wrote:
3 ways:
- Interactive: URL method "mailto:...." or AppleScript
- Non-interactive: Message.framework
- Non-Interactive (best solution): EDInternet.framework.
What's the correct way to ask an email program send an attachment?
EDInternet.framework allows you to send attachment. Maybe you can send
attachment too with the AppleScript solution.
Message framework allows the use of an attachment as well...
The problem with both non-interactive methods seems to be the
missing support for SMTPAUTH. This needs to be built in, since it's
going to have to use things like keychain and what-not to get to the
passwords. Apple really needs to attend to this for Jaguar.
As to Simson's original quest.. the mailto URL will in fact support
the other format (Somebody there <email@hidden>) if you first URL
encode the email address (using CFURLCreateStringByAddingPercentEscapes)
as well as the body, subject, cc and bcc as available.
You're still semi-stuck for the attachment..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.