Send also the originating IP address

This commit is contained in:
Salvo 'LtWorf' Tomaselli 2013-12-28 10:53:21 +01:00
parent 8157464497
commit bd563fcbbc

View File

@ -24,6 +24,7 @@ def mail_sender(request, *args, **kwargs):
message = ""
for k,v in request.POST.iteritems():
message += "%s: %s\n" % (k,v)
message += "ip address: %s\n" % str(request.remote_addr)
if kwargs["id"] == "relational":
from google.appengine.api import mail