I am working on a contact form and need to amend the following line of code:
Code: Select all
mail("ben@gercia.co.uk", ''.$subject, $_SERVER['REMOTE_ADDR']. "\n\n" .$message, "From: $from");I would like to reformat the email sent with some addition text, a couple of line breaks and add in the senders name (taken from the form - $name), so the email displays like this:000.000.000.000
This is the message.
I have been playing around with this for a while trying to do it but not having much luck!IP Address: 000.000.000.000
Name: Senders Name
Message:
This is the message.
Any help appreciated.
-Ben