Skip navigation.
 
mlRe: How Do You Open Default Web Browser and goto URL?
FROM : Andrew Farmer
DATE : Fri May 02 06:18:56 2008

On 01 May 08, at 21:05, Peter Zegelin wrote:
> Thanks  - I have got it to work in both cases except where I add a 
> subject to the mailto:
>
> This works:  NSString *applicationURL = @"mailto:<email_removed>
>  ";
>
> but this doesn't:  NSString *applicationURL = @"mailto:<email_removed>?subject=AlphaDraw
>  - Require Registration Help ";
>
> into:  [[NSWorkspace sharedWorkspace] openURL:[NSURL 
> URLWithString:applicationURL]];
>
> If I shorten the Subject to just subject=AlphaDraw it works but it 
> looks like any spaces are causing the method to fail.
> Any suggestions what may be wrong?


You need to URL-encode the subject.

NSString *applicationURL = @"mailto:<email_removed>?subject=AlphaDraw%20-%20Require%20Registration%20Help
"

Related mailsAuthorDate
mlHow Do You Open Default Web Browser and goto URL? Peter Zegelin May 2, 05:02
mlRe: How Do You Open Default Web Browser and goto URL? Michael Vannorsdel May 2, 05:16
mlRe: How Do You Open Default Web Browser and goto URL? Peter Zegelin May 2, 06:05
mlRe: How Do You Open Default Web Browser and goto URL? Andrew Farmer May 2, 06:18
mlRe: How Do You Open Default Web Browser and goto URL? Jens Alfke May 2, 06:19
mlRe: How Do You Open Default Web Browser and goto URL? Michael Vannorsdel May 2, 06:19
mlRe: How Do You Open Default Web Browser and goto URL? Peter Zegelin May 2, 06:24