If you use "Plain Text" email form and record IP, you'll get this:
Notice the "Submitted by.." line appends itself to the last line in my email template. The simple fix is this:
Change this:
To this:
This shouldn't cause any bad side effects for HTML formatted emails either.
Name: Bill
Email: [email]blah@example.comSubmitted[/email] by 127.0.0.1
Notice the "Submitted by.." line appends itself to the last line in my email template. The simple fix is this:
Change this:
$email_body .= "Submitted by ".$_SERVER['REMOTE_ADDR'];
To this:
$email_body .= "\nSubmitted by ".$_SERVER['REMOTE_ADDR'];
This shouldn't cause any bad side effects for HTML formatted emails either.
Hi leolll,
thanks for sharing this idea, another trick is also to use the {IPADDRESS} in your template and so the IP will be placed wherever its and not in the end!
Regards
Max
thanks for sharing this idea, another trick is also to use the {IPADDRESS} in your template and so the IP will be placed wherever its and not in the end!
Regards
Max
This topic is locked and no more replies can be posted.