iPhone:使用MFMailCompose在HTML格式发送图像和文本时出现问题 [英] iPhone : Problem while sending image and text in HTML formate using MFMailCompose

查看:103
本文介绍了iPhone:使用MFMailCompose在HTML格式发送图像和文本时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用MFMailCompose在邮件中发送 HTML

I am sending HTML in mail using MFMailCompose.

HTML 包含字串和图片。

因此,当我使用发送此邮件时,它只发送文本。它不显示任何图像。

So when I use to send this mail, It is sending text only. It does not display any images.

如何发送所有 HTML 数据,以便图像显示在电子邮件中?

How can I send my all HTML data So that images are shown in email ?

推荐答案

您可以在HTML中使用内嵌图片,但是必须使用base64编码对附件数据进行编码。这导致一些电子邮件客户端的问题。 Gmail。
请在此处查看有关此问题的详细讨论:
如何在iPhone中的MFMailComposeViewController的MailComposer表单中添加UIImage

You can have inline images in HTML but you have to encode the attachments data using base64 encoding. This leads to problems with some email clients e.g. Gmail. Please find a detailed discussion on this issue here: How to add an UIImage in MailComposer Sheet of MFMailComposeViewController in iPhone

这篇关于iPhone:使用MFMailCompose在HTML格式发送图像和文本时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆