View Full Version : php sendmail

09-05-2009, 08:14 PM
i wasn't really sure which section to post this, php or html. i'm sending html-formatted email via php's mail() function. All looks good on the receiving side (in thunderbird, aol, and outlook), however, in comcast mail (which is the only web-based client i've tested so far) the <img> elements get altered.

When this is sent...
<img src='http://www.foo.com/foo.jpg'; style='position:absolute; top:10px; left:10px; height:100px; width:100px'/>"

comcast email shows (via firebug)...
<img dfsrc="http://www.foo.com/foo.jpg" src="http://www.foo.com/foo.jpg"/>

If I swap the src and style parms, like so...
<img style='position:absolute; top:10px; left:10px; height:100px; width:100px'; src='http://www.foo.com/foo.jpg' />"

comcast email show (via firebug)...
<img style="position: absolute; top: 10px; left: 10px; height:100px; width:100px';"/>

I've tried priming my img with the "dfsrc" value, and other variations on that theme, but no matter what I do, on the receiving side I seem to have a choice of either getting the img url OR the img style info, but not both.

Again, Comcast is the only web-based client I've tested so I don't know if others will munge my html. Can anyone shed any light on this?

Thanks in advance.

09-05-2009, 09:51 PM
This may be something that ComCast webmail does to incoming images... so it may be out of your control.

This may be worth a read, helped me quite a lot: