i am attaching image in email.but how can we attach html file in email ?
here is code by which i am attaching image file in an email.
i have tried following code to attach html file but it is not working.
UIImage *artworkImage = viewImage;
NSData *artworkJPEGRepresentation = nil;
artworkJPEGRepresentation = UIImageJPEGRepresentation(artworkImage, 0.7);
[composeVC addAttachmentData:artworkJPEGRepresentation mimeType:@"image/jpeg" fileName:@"Image.jpg"];
[self presentModalViewController:composeVC animated:YES];
How can we attach HTML?.
NSData* htmlAttach = [NSData dataWithContentsOfFile:filepath];
I don't want to set HTML as body, i want to send HTML as attachment.
this is very urgent.
kindly guide me regarding this issue.