can any one recommend auto mail scrips

Discussion in 'PHP' started by jg_abad, Feb 23, 2008.

  1. #1
    Hello,
    i am looking for one scripts which send mail on specified email id on page load. and email must contain information of IP from which visitor visit the page.
    for example.
    for this page : fdsfdsfsdfdfdf(dot)com/dfdsffsfs.php
    when any one visit this page, i should receive mail on specified email id with IP details of visitors.

    regards
     
    jg_abad, Feb 23, 2008 IP
  2. KnuTz

    KnuTz Well-Known Member

    Messages:
    169
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #2
    try this^^

    
    <?php
    $ip = $_SERVER['REMOTE_ADDR'];
     
    
    // Send
    mail('name@email.com', 'Some Ip', $ip);
    ?>
    
    PHP:
     
    KnuTz, Feb 23, 2008 IP
  3. jg_abad

    jg_abad Peon

    Messages:
    903
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks,
    i have search the code and problem is resolve
     
    jg_abad, Feb 23, 2008 IP