• 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 email with attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending email with attachments


  • Subject: Re: Sending email with attachments
  • From: John Joyce <email@hidden>
  • Date: Wed, 2 Feb 2011 07:18:24 +0900

On Feb 2, 2011, at 7:13 AM, email@hidden wrote:

> How can one go about doing this and support 10.4-10.6? There are links all over the place pointing to deprecated API's (NSMailDelivery) or frameworks that are 10.5+ (EDMessage, Scripting Bridge), but nothing I can use. All I want to do is open the default mail application, create a new message, attach a file and then allow the user to address it and send. That should not be too difficult, I should think. Is an Automator action the way to go? Can someone help me out?
> Thanks
> ____________________________________________
 HI Lorenzo,

If you need to support multiple versions of the OS have 3 options really :

1)
Use compiler directives with #ifdef to check the os version number and utilize the frameworks appropriate for the version found.

2)
Use AppleEvents (AppleScript or other means of interfacing with AppleEvents)

3)
Role your own means of sending the mail.

*** Keep in mind some users may not use the Mail application at all. They may be using another email client app, OR they may use webmail, OR (rare) no email at all.


_______________________________________________

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: Sending email with attachments
      • From: Lorenzo Thurman <email@hidden>
References: 
 >Sending email with attachments (From: email@hidden)

  • Prev by Date: Re: text orientation/positioning with layout manager
  • Next by Date: Re: text orientation/positioning with layout manager
  • Previous by thread: Sending email with attachments
  • Next by thread: Re: Sending email with attachments
  • Index(es):
    • Date
    • Thread