Re: Sending email with attachments
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jDDDClB3dCWpou39yY6a8C9ADRqretDtWHfGlI3H0IA=; b=Yo9HnI7ta6M6GM1vi5ZpLt8UqwONJDU3P5jhpWWCLiOFI1flUH0FbX9Gz5M9k7QN/2 w2WczA5zPAzq04OUI7o3Sj8/zvkrGF94qipOwDMrlvjT0eULXGGMmzIoAr4YSJxn7x2z kQEXwqm+5CUPwDX8CY2tKmof/VqdVZhkbgg4U= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=i8PZHYFO62wBm/y4iJPcnuTyRNrgVofOz0Cl34B/txt/J5wDn0PV0sOI3lOgbsklEq Ht5qLG4vhb2EB2IMkACouyhdwTL4zNj16VId78tIJ8row8Rqi0NSfOLxoHiDFqAylcvW kDt80aixDlWrYTSCDA2J/B98H/YTt0XqhqwKw= Thanks for the reply. Yep, I know there are a variety of mail clients out there, so not everyone uses Mail. And that sucks. This program is actually a port of an iPhone application for which, different mail clients are not a problem. But at least to start, I'm only going to support Mail. I'll likely just copy the attachment to the desktop and let the non-Mail.app users handle it from there. For now at least. On Tue, Feb 1, 2011 at 4:18 PM, John Joyce < dangerwillrobinsondanger@gmail.com> wrote:
On Feb 2, 2011, at 7:13 AM, lorenzo7620@gmail.com 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.
-- "My break-dancing days are over, but there's always the funky chicken" --The Full Monty _______________________________________________ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com
participants (1)
-
Lorenzo Thurman