我试图发送包含图像和文本的html页面。问题是,当我发送图像时未显示图像。有什么解决办法呢? thaks提前..图像未显示在电子邮件正文中
我的代码是:
[picker addAttachmentData:myData mimeType:@"pdf" fileName:@"ShowerDoorsQuotation.pdf"];
NSString *emailBody = [NSString stringWithFormat:@"<html>
<head>
</head>
<body><img src='ShowerDoors/ShowerDoors/logo.png' width='150px' height='150px'/>
</body>
</html>"];
[picker setMessageBody:emailBody isHTML:YES];
[self presentModalViewController:picker animated:YES];
[picker release];
我们可以有更多的信息? – SNpn 2012-02-08 04:52:17
在目前的邮件系统中,邮件提供商如Gmail,雅虎已经封锁了该图片。图像将在点击显示图像时显示。你不能改变它。 – 2012-02-08 04:56:29
ya。但即使在模拟器中它也不会显示图像。 – Rohan 2012-02-08 05:04:25