Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
iPhone mailto: links
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Wood  
View profile  
 More options Jul 6 2007, 2:49 pm
From: Dan Wood <dw...@karelia.com>
Date: Fri, 6 Jul 2007 11:49:38 -0700
Local: Fri, Jul 6 2007 2:49 pm
Subject: iPhone mailto: links

I've just put in a mailto: link in TeleMoose that has a pre-filled  
subject and body.  What's interesting is that the body's content that  
you specify in the mailto link is actually interpreted as HTML, which  
is different than the standard (plain text), and how Apple Mail  
implements it.

So just be careful in generating a mailto: link; make sure that for  
the iphone, that you are generating HTML, not plain text -- e.g. for  
newlines, you'd use <br>; escape your < > & characters, etc.

--
Dan Wood
dw...@karelia.com

Sign up for a free 30-day trial and download 50 FREE songs from  
eMusic's catalogue of over 2 million DRM-free tracks:
http://tinyurl.com/ypkzph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hardy Macia  
View profile  
 More options Jul 6 2007, 3:28 pm
From: "Hardy Macia" <hardyma...@gmail.com>
Date: Fri, 6 Jul 2007 15:28:51 -0400
Local: Fri, Jul 6 2007 3:28 pm
Subject: Re: iPhone mailto: links
Ah, just in time... I had already given up on having new lines in the
body and filed a bug on it. Replacing \r \n with <br> works great.

Thanks
  Hardy

On 7/6/07, Dan Wood <dw...@karelia.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kalle Alm  
View profile  
 More options Jul 6 2007, 3:29 pm
From: Kalle Alm <kalle....@gmail.com>
Date: Fri, 06 Jul 2007 21:29:32 +0200
Local: Fri, Jul 6 2007 3:29 pm
Subject: Re: iPhone mailto: links
I've been working on an example page for "mailto:", and tried what you
said but I am having trouble figuring out how to escape <this>. The
phone keeps interpreting it as a tag and removes it from the email.

The example is here: http://www.iphonewebdev.com/examples/mailto.html

Ideas welcome!

-Kalle.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kalle Alm  
View profile  
 More options Jul 6 2007, 3:41 pm
From: Kalle Alm <kalle....@gmail.com>
Date: Fri, 06 Jul 2007 21:41:15 +0200
Local: Fri, Jul 6 2007 3:41 pm
Subject: Re: iPhone mailto: links
Got it. %26lt;, %26gt; etc. worked.

-Kalle.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Wood  
View profile  
 More options Jul 6 2007, 4:36 pm
From: Dan Wood <dw...@karelia.com>
Date: Fri, 6 Jul 2007 13:36:52 -0700
Local: Fri, Jul 6 2007 4:36 pm
Subject: Re: iPhone mailto: links
Ah, good catch.  The trick is that special characters need to be  
escaped both for a URL and for the HTML page.

I get this by starting with the HTML, meaning that there are tags,  
and I've escaped & < > .... Then I url-encode the string (changing  
space to %20, & to %26, < to %3C, > to %3F, etc.  And then, for good  
measure, I escape any entities to put that string into the web page  
(though that is not strictly necessary since all the & < > characters  
have already been converted).

For example, this chunk of HTML....

Check this out!<br><br>Harry Potter and the Deathly Hallows (Book 7)  
by J. K. Rowling.<br><br>&lt;http://www.amazon.com/o/ASIN/0545010225/
karelsofwa-20&gt;<br><br>... or from your iPhone, &lt;http://
TeleMoose.com/d_0545010225&gt;

becomes....

Check%20this%20out%21%3Cbr%3E%3Cbr%3EHarry%20Potter%20and%20the%
20Deathly%20Hallows%20%28Book%207%29%20by%20J.%20K.%20Rowling.%3Cbr%3E
%3Cbr%3E%26lt%3Bhttp%3A%2F%2Fwww.amazon.com%2Fo%2FASIN%2F0545010225%
2Fkarelsofwa-20%26gt%3B%3Cbr%3E%3Cbr%3E...%20or%20from%20your%20iPhone
%2C%20%26lt%3Bhttp%3A%2F%2FTeleMoose.com%2Fd_0545010225%26gt%3B

On Jul 6, 2007, at 12:41 PM, Kalle Alm wrote:

> Got it. %26lt;, %26gt; etc. worked.

> -Kalle.

--
Dan Wood
dw...@karelia.com

Sign up for a free 30-day trial and download 50 FREE songs from  
eMusic's catalogue of over 2 million DRM-free tracks:
http://tinyurl.com/ypkzph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hardy Macia  
View profile  
 More options Jul 6 2007, 10:06 pm
From: Hardy Macia <hardyma...@gmail.com>
Date: Fri, 6 Jul 2007 22:06:58 -0400
Local: Fri, Jul 6 2007 10:06 pm
Subject: Re: iPhone mailto: links
I used encodeURIComponent

Sent from my iPhone

On Jul 6, 2007, at 4:36 PM, Dan Wood <dw...@karelia.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kalle Alm  
View profile  
 More options Jul 7 2007, 6:24 am
From: Kalle Alm <kalle....@gmail.com>
Date: Sat, 07 Jul 2007 12:24:01 +0200
Local: Sat, Jul 7 2007 6:24 am
Subject: Re: iPhone mailto: links
Good point. I'll add a note about that to the example page.

-Kalle.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »