I'm interested in placing a picture (along with some text) in a prepared email for the user to send off. Is there any way to use mailto: to do that?
+1
A:
No, mailto: is just a HREF target for the A tag, and just instructs the operating system to open the mail browser to a specific location (with subject). To send a custom email on click of a link, you'll need server side code, such as PHP (sendmail) or Ruby (ActionMailer)
Mike Trpcic
2010-01-22 18:53:15
A:
I think the best you can do is link to an image, like this:
<a href="mailto:[email protected]&body=http://www.mydomain.com/myimage.jpg">test</a>
RedFilter
2010-01-22 18:53:46
+1
A:
No. The mailto:
scheme does not support attachment. (See http://www.faqs.org/rfcs/rfc2368.html).
If you write an app you can attach an image with MFMailComposeViewController
.
KennyTM
2010-01-22 18:55:16
MFMailoComposeViewController was exactly what I needed, thanks!
JoBu1324
2010-01-26 18:42:24
Is there a corresponding interface for sending text messages, I wonder?
JoBu1324
2010-01-26 18:43:29
@JuBu1234: Nope.
KennyTM
2010-01-26 18:51:03