{"id":5434897,"date":"2014-10-30T07:09:45","date_gmt":"2014-10-30T07:09:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/send-ip\/"},"modified":"2016-08-22T03:57:19","modified_gmt":"2016-08-22T03:57:19","slug":"send-ip","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/send-ip\/","title":{"rendered":"Send IP"},"content":{"rendered":"<p>There&#8217;s only one thing I noticed that I really needed in it but it didn&#8217;t have.  When it would send an email it wouldn&#8217;t show the IP address of the sender.  I looked at the PHP code and it was relatively simple to add in.<\/p>\n<p>If you open up the file simplesecure.php and scroll down to around line 238 you should see something like this:<\/p>\n<p><code>$body .= &quot;Message: &quot; . $message . &quot;\\n&quot;;<\/code><\/p>\n<p>At the end of that line press enter to create a new line and add this to that new line:<\/p>\n<p><code>$body .= &quot;Sender IP: &quot; . $_SERVER[&#039;REMOTE_ADDR&#039;] . &quot;\\n&quot;;<\/code><\/p>\n<p>When you get emails it will now have something like:<\/p>\n<p>IP Address: 192.168.0.1<\/p>\n<p>https:\/\/wordpress.org\/plugins\/simplesecure\/<\/p>\n","protected":false},"template":"","class_list":["post-5434897","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5434897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5434897\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5434897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}