Re: sending mail
Re: sending mail
- Subject: Re: sending mail
- From: Jonathan Wight <email@hidden>
- Date: Tue, 16 Dec 2003 13:05:54 -0600
One quick & dirty solution springs to mind. Create a mailto NSURL of
the form:
mailto:email@hidden?subject=ThisIsMySubject&body=ThisIsMyBody
Don't forget to encode the URL first (there is a method for doing this
somewhere but I can't find it right now - look in NSString or NSURL).
And then use -[NSWorkspace openURL:] to launch the default email
application with the URL.
Jon.
On Dec 16, 2003, at 12:38, Devon E Bowen wrote:
>
I'd like to allow the user of my app to send a block of text to
>
someone. Ideally, the Mail app would automatically be launched
>
and they'd find a normal "New Message" window with an empty To
>
line and a block of text already entered for them.
>
>
I thought that MacOS Services would be the answer. It's rather
>
simple to make a pasteboard and hand that off to the Mail service
>
for delivery. However, this seems to function in a really odd
>
way. The Mail app does not open a "New Message" window. Instead,
>
it creates a letter (after waiting 15-20 seconds) in the Drafts
>
folder that the user has to notice and then click to edit. This
>
hardly seems reasonable. Your average user is going to to wonder
>
why Mail was launched but no message appears.
>
>
Am I doing something wrong here? Is this really the expected
>
behavior? Is there another way to get the effect I want? Any
>
tips would be appreciated...
>
>
Devon
>
_______________________________________________
>
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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.
References: | |
| >sending mail (From: Devon E Bowen <email@hidden>) |