• 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: Sending mail from Cocoa Apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Sending mail from Cocoa Apps (From: email@hidden)

  • Prev by Date: Re: AltiVec optimization in Cocoa?
  • Next by Date: Re: Objective-C documentation
  • Previous by thread: Re: Sending mail from Cocoa Apps
  • Next by thread: Re: Sending mail from Cocoa Apps
  • Index(es):
    • Date
    • Thread