Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: php sendmail
09-05-2009, 08:14 PM #1
- Join Date
- May 2007
- Manteca, CA
- Thanked 0 Times in 0 Posts
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 #2
- Join Date
- Mar 2007
- Northamptonshire, UK
- Thanked 4 Times in 4 Posts
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: