• 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
Open the mail reader to send a mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Open the mail reader to send a mail


  • Subject: Open the mail reader to send a mail
  • From: Arthur VIGAN <email@hidden>
  • Date: Sun, 11 May 2003 09:14:08 +0200

Hi,

I need my application to open the default mail reader of the user to send a mail. I searched the archives and found that a way of doint this is to user an NSURL like "mailto:email@hidden?subject=A subject". But I tried the following code that doesn't work:

[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@ "mailto:email@hidden?subject=A subject"]];

What is wrong with this?

Thanks in advance,

-- Arthur
_______________________________________________
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.

  • Follow-Ups:
    • Re: Open the mail reader to send a mail
      • From: Nick Zitzmann <email@hidden>
    • Re: Open the mail reader to send a mail
      • From: Esteban Uribe <email@hidden>
  • Prev by Date: Re: NSMovieView stops playing
  • Next by Date: Re: Open the mail reader to send a mail
  • Previous by thread: Re: NSCalendarDate unarchives from plist as NSCFDate
  • Next by thread: Re: Open the mail reader to send a mail
  • Index(es):
    • Date
    • Thread