SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 185 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"

Table 7-1 lists these options.
Figure 7-8: Sending a mail message from an
application
Option Syntax
Multiple recipients , (comma separating email addresses)
Message subject subject=Subject Text
Cc recipients cc=name@address.com
Bcc recipients bcc=name@address.com
Message text body=Message text
Table 7-1: Optional mailto: Attributes
Per HTTP conventions, precede the initial parameter with a ? (such as ?subject= ) and precede any
additional parameters with an &.
Chapter 7: Integrating with iPhone Services
166
The mailto: protocol normally allows line breaks in the body attribute value using %0A for a line break
and %0A%0A for a line break followed by a blank line. However, iPhone ignores the %0A codes and puts
all of the text on one line.
As a work-around, iPhone enables you to embed HTML in your message body, therefore enabling you to
add br tags for line breaks and even other tags (such as strong ) for formatting.
When you combine several parameters, the following element provides everything a user needs to send
a reminder message:
(navigator.userAgent.indexOf(???iPhone??™) != -1)???
href=???mailto:jack@ibmcorp.com?subject=Meeting&body=Dear Jack,
I look forward to
our upcoming meeting together this Friday at
8am.


Pages:
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197