• tlagren

    (@tlagren)


    Is it possible to include the users ip address into the email body? It could be good to know from where a new password was requested.

    Adding it as feature like {username} and {reset_link} would be nice.

    /Tomas

Viewing 1 replies (of 1 total)
  • Thread Starter tlagren

    (@tlagren)

    I did a quick hack for my own site, just added a new replace line in includes/somfrp-functions.php

    
    $email_body = str_replace( "{ipaddress}", $_SERVER['REMOTE_ADDR'], $email_body );
    $email_body_user = str_replace( "{username}", $user_login, $email_body );
    $email_body_link = str_replace( "{reset_link}", $reset_link, $email_body_user );
    $email_body = wpautop( $email_body_link );
    $message = $email_body;
    

    /Tomas

Viewing 1 replies (of 1 total)
  • The topic ‘Add requester ip address to message body’ is closed to new replies.