• 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 attachement from cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending email with attachement from cocoa


  • Subject: Re: sending email with attachement from cocoa
  • From: has <email@hidden>
  • Date: Fri, 26 Sep 2008 19:11:08 +0100

Alexander Cohen wrote:

Is there a way to use a url request to open mail with all its fields
completed but most importantly, contain an image attachement?


Nope. If you want to send an email in the background, you'll need to look into a third-party framework option:

http://www.collaboration-world.com/pantomime
http://www.theronge.com/mailcore
http://www.mulle-kybernetik.com/software/EDFrameworks

If you're talking specifically about creating an outgoing message in Mail.app, you'll need to control it via its Apple events ('AppleScript') interface. It's somewhat buggy (chronically so), but can usually be coaxed into doing roughly what you want. I've got an sample project (SendEmail) in appscript's svn repository that shows how to do this using ObjC and appscript:

svn checkout http://appscript.svn.sourceforge.net/svnroot/appscript/objc-appscript/trunk objc-appscript

I believe there's a sample project somewhere on Apple's site that shows how to do the same sort of thing using Leopard's Scripting Bridge (but I'll not link to that here as I don't have a very high opinion of Scripting Bridge:).

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

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 attachement from cocoa
      • From: Torsten Curdt <email@hidden>
    • Re: sending email with attachement from cocoa
      • From: "Chris Suter" <email@hidden>
  • Prev by Date: NSURLConnection issues
  • Next by Date: Re: sending email with attachement from cocoa
  • Previous by thread: Re: sending email with attachement from cocoa
  • Next by thread: Re: sending email with attachement from cocoa
  • Index(es):
    • Date
    • Thread