开发者

Include a picture in mailto:

开发者 https://www.devze.com 2022-12-17 16:18 出处:网络
I\'m interested in placing a picture (along with some text) in a prepared email for the user to send off. I开发者_高级运维s there any way to use mailto: to do that?No. The mailto: scheme does not supp

I'm interested in placing a picture (along with some text) in a prepared email for the user to send off. I开发者_高级运维s there any way to use mailto: to do that?


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.


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)


I think the best you can do is link to an image, like this:

<a href="mailto:?to=joe@example.com&body=http://www.mydomain.com/myimage.jpg">test</a>
0

精彩评论

暂无评论...
验证码 换一张
取 消