Re: [NEWBIE] How to send an email with Cocoa?
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