php mail() link image -


I am trying to send an e-mail using the following code:

  $ Html header = ""; $ Html header = "mime-version: 1.0 \ r \ n"; $ Html Header = "Content-type: text / html; charset = ISO-8859-1 \ r \ n"; $ Html Header = "X-Mailer: PHP /" phpversion (). "\ R \ n"; $ Html Header = "Sender: System & lt; test@test.com> \ r \ n"; Mail ("dest@example.com", "Subject", 'New Testing & lt; img src = "http: //www.someserver/image.jpg" & gt;', $ html header);  

I've seen a picture (I always link images via a link) I'm working fine and mail is given properly, while for some other images I have problems; For example, this image has not been delivered.

For example, trying to use this image will not work:

I think this is the problem of the header, but I really do not understand how

By default some mail clients will download images only under a certain size, some people will not download any image.

Your best bet (though it can be a lot more than what you are doing now) Email with a CID is to attach an image and reference that image (< Code> & lt; img src = "cid: whatever"> )

This will increase the size of your email because you have to transmit the image with each email, but this is more Mail will be displayed in the client.


Comments