0
我附上了email.but中的图片,我们如何在电子邮件中附加html文件? 这里是我通过电子邮件附加图像文件的代码。iphone附带的html附件
UIImage *artworkImage = viewImage;
NSData *artworkJPEGRepresentation = nil;
if (artworkImage)
{
artworkJPEGRepresentation = UIImageJPEGRepresentation(artworkImage, 0.7);
}
if (artworkJPEGRepresentation)
{
[composeVC addAttachmentData:artworkJPEGRepresentation mimeType:@"image/jpeg" fileName:@"Image.jpg"];
}
[self presentModalViewController:composeVC animated:YES];
[composeVC release];
我们如何以同样的方式附加HTML。
我不想将HTML设置为body,我想发送HTML作为附件。
请指导我解决这个问题。
是的,我已经尝试过这一点,但它是不工作也附上HTML文件中的电子邮件,但不处理html.i表示它不显示我在HTML中所做的事情,例如显示一些消息。 – user130934 2009-08-04 08:34:27