Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: php sendmail

  1. #1
    Regular Coder
    Join Date
    May 2007
    Location
    Manteca, CA
    Posts
    219
    Thanks
    4
    Thanked 0 Times in 0 Posts

    php sendmail

    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.

  • #2
    Regular Coder the-dream's Avatar
    Join Date
    Mar 2007
    Location
    Northamptonshire, UK
    Posts
    477
    Thanks
    8
    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:
    http://www.mailchimp.com/articles/st...sign-mistakes/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •