how to get visitor ip address to send in email
I have a page that visitors are auto-returned to by paypal after purchasing product.
I use UE to send an email triggered before page load to alert that an order has been placed.
I am trying to get the IP address of the visitor to the page sent with the email; the reason is I get spam robots going to the page without going through the paypal process and I am trying to block these by IP from accessing my server.
I use php code for hidden field which works when a form is submitted.
<input name="hiddenFieldIP" type="hidden" id="hiddenFieldIP" value="<?php echo((isset($_SERVER["REMOTE_ADDR"]))?$_SERVER["REMOTE_ADDR"]:"") ?>" />
But since the email is triggered before page load, how can I get the IP address on the email?
thanks for your help