I really need (and I think it could be very nice for all) to execute some php code inside the message body.
No, you can't and shouldn't do so.
Ip Address of the user
Name / URL of the page from the user submitted the form (I'm not using it in just one page)
If the user is logged in and with what username
Use these functions instead.