Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: mail() function

  1. #1
    Senior Member leprechaun13's Avatar
    Join Date
    May 2005
    Location
    Northampton
    Posts
    487
    Member #
    10058
    Im using the mail function to send a visitors infomation to 2 email addresses one is an ISP provided *@ntlworld.com and a hotmail address, it sends emails to the NTL accound perfectly but doesnt send them to the hotmail account any ideas
    Regards Phil,


  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Most likely it ended up in the Junk Mail folder of Hotmail.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member leprechaun13's Avatar
    Join Date
    May 2005
    Location
    Northampton
    Posts
    487
    Member #
    10058
    Ive checked the junk mail and its not there, ive also reset all spam filtering options and tried turning it off still to no avail
    Regards Phil,


  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    What is the code you're using?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  6. #5
    Senior Member leprechaun13's Avatar
    Join Date
    May 2005
    Location
    Northampton
    Posts
    487
    Member #
    10058
    PHP Code:
    <?php
    $to 
    'some-email@hotmail.com';  // The email address you want notifications sent to
    $cc me@ntlworld.com';  // The second semail address you want notifications sent to
    // PHP Script By Philip Baucutt

    $headers = "Content-type: text/html \nFrom: Some@Email.com";
    $iplogger = $_SERVER['
    HTTP_X_FORWARDED_FOR'];
    $proxyip = $_SERVER['
    REMOTE_ADDR'];
    $date = date('
    l dS \of F Y h:i:s A');
    $info = $_SERVER['
    HTTP_USER_AGENT'];
    $referer = $_SERVER['
    HTTP_REFERER'];
    $page = $_SERVER['
    QUERY_STRING'];
    $host = $_SERVER['
    REMOTE_HOST'];
    $rport = $_SERVER['
    REMOTE_PORT'];
    $body = "<center><h2>Visitor Information</center></h2>
    IP Address = ".$iplogger." <br>
    Proxy Address = ".$proxyip." <br>
    Date & Time = ".$date."<br>
    Browser Info = ".$info."<br>
    Referer = ".$referer."<br>
    Remote Host = ".$host."<br>
    Remote Port = ".$rport."<br>
    ";
    mail($to,$_SERVER['
    HTTP_X_FORWARDED_FOR'],$body,$headers);
    mail($cc,$_SERVER['
    HTTP_X_FORWARDED_FOR'],$body,$headers);
    ?>
    <?php
    if ($ip == "")
    {
    header("Location: /home");
    }
    else
    {
    header("Location: error.php");
    }
    ?>
    Regards Phil,



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:01 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com