Re: MFMailComposeViewController: referencing attached data in HTML body
Re: MFMailComposeViewController: referencing attached data in HTML body
- Subject: Re: MFMailComposeViewController: referencing attached data in HTML body
- From: Heath Borders <email@hidden>
- Date: Sun, 26 Jun 2011 21:23:02 -0500
You could base64 your image data and use a data url to refer to it
within your HTML. Then, you wouldn't have to attach it.
-Heath Borders
email@hidden
Twitter: heathborders
http://heath-tech.blogspot.com
On Sun, Jun 26, 2011 at 6:14 PM, Pierre Fournier <email@hidden> wrote:
>
> Hi,is there a way to reference the attached data within the HTML body?[mailController addAttachmentData:pngDataFooter mimeType:@"image/png" fileName:@"footer.png"];[mailController setMessageBody:@"<html><body><img src=\"footer.png\"></body></html>" isHTML:TRUE];When running such code, I get a blue question mark instead of the image, while the image is correctly attached.I want to kind of compose an html email based of different images. _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden