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
heath.bord...@gmail.com
Twitter: heathborders
http://heath-tech.blogspot.com



On Sun, Jun 26, 2011 at 6:14 PM, Pierre Fournier <shir...@hotmail.com> 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 (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/heath.borders%40gmail.com
>
> This email sent to heath.bord...@gmail.com
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to