• 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: [NEWBIE] How to send an email with Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] How to send an email with Cocoa?


  • Subject: Re: [NEWBIE] How to send an email with Cocoa?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 27 Oct 2004 15:12:15 +0200

At 11:53 Uhr +0200 27.10.2004, stephane sudre wrote:
1) Is there a way, from inside Cocoa, to create a new email message? Is there a way to get the user's default email client to handle the sending of the message?

You could try creating an NSURL of the following form:

mailto:email@hidden?subject=foo&body=bar

Of course you'll have to escape special characters, and some mail clients have a 255 character limit on the length of a URL, which will have impact on your message length... but for short, notification-style stuff this works.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: [NEWBIE] How to send an email with Cocoa?
      • From: "Alexander F. Hartner" <email@hidden>
References: 
 >Re: [NEWBIE] How to send an email with Cocoa? (From: stephane sudre <email@hidden>)

  • Prev by Date: Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Next by Date: Re: System Idle Time
  • Previous by thread: Re: [NEWBIE] How to send an email with Cocoa?
  • Next by thread: Re: [NEWBIE] How to send an email with Cocoa?
  • Index(es):
    • Date
    • Thread