Page 1 of 1
$_SERVER['REMOTE_ADDR'] not works with piping
Posted: Thu Apr 23, 2015 8:21 am
by Jenny
When I make a ticket fom form, I see my IP in ticket list later, but when I make it with pipe, my IP is always not specified.
Re: $_SERVER['REMOTE_ADDR'] not works with piping
Posted: Thu Apr 23, 2015 11:15 am
by Klemen
That's normal, because with email piping the customer never visits your server so the $_SERVER['REMOTE_ADDR'] variable is always empty.
Re: $_SERVER['REMOTE_ADDR'] not works with piping
Posted: Thu Apr 23, 2015 6:24 pm
by Jenny
Agree. Is there any alternate way to know IP with piping?
Re: $_SERVER['REMOTE_ADDR'] not works with piping
Posted: Fri Apr 24, 2015 6:31 pm
by Klemen
Unfortunately not. But I got an idea that will be included in the next update - IP will be set if customer replies over the web form at any time.
Re: $_SERVER['REMOTE_ADDR'] not works with piping
Posted: Mon Apr 27, 2015 11:51 am
by Jenny
Klemen wrote:Unfortunately not. But I got an idea that will be included in the next update - IP will be set if customer replies over the web form at any time.
Yes, parse IP from header could not give normal result. Good idea for next update! It will be nice to add IP not only when customer replies over the form, but also when open ticket link may be