I have tried to write a script that sends image as an embedded object rather that attachment OR a url link but it is not working. I am attaching the code. Please help me.

Is there any one to help me out

I think I have not phrased my question in a better way. thats why no one is answering

I am developing an php mail script page but don't know how to embed image in the html code itself . I don't want to put images on server side and use IMG SRC tag so that every time client will fetch it from server instead i'd like to embed the image in html code itself. I think for that purpose something like src=cid:-------- is used but I don't know how to use it.

The purpose for that is
1)Even after disconnecting from the internet client should be able to view the image.
2) I need not to attach the image file every time if it embedded in he HTML itself.

Please send your reply with an example.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.