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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    image beacon for email tracking

    I have a php 'beacon.php' script, which when loaded in the browser logs user info:

    PHP Code:
    $addr $_SERVER['SERVER_ADDR'];
    mysql_query("INSERT INTO tbl_email_beacon (server_addr) VALUES ('$addr')");
    header('Content-Type: image/gif');
    readfile("http://www.mydomian.com/images/yellowbox.gif"); 
    I have successfuly loaded this script from an image tag also in the browser:
    Code:
    <img src="http://www.mydomain.com/beacon.php" alt="" />
    However, when I try to send the image via an email, it doesnt render and doesnt run the script

    Does anyone have any ideas?

    Matt

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,346
    Thanks
    60
    Thanked 527 Times in 514 Posts
    You're going to need to show the raw email for anyone to comment on that.

    There is nothing wrong with the link you've shown above however html emails work a bit differently to html pages so you need to show us the raw code for it.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here it is:

    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
    <img src="https://www.evolutionfunding.com/matt_testing/beacon.php">


  •  

    Posting Permissions

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