sendmail - PHP mail body construct -
i can't seem join (concatenate) these fields correctly. using mail api 3rd party end , can't change fields. add new fields need add them comments section. want add log in id ($loginid) $internal=$_server['server_addr']; $hostname = gethostbyaddr($_server['remote_addr']); to comments field $inquiry = $_post['textfield'] ; i need format follows in generated email: log in - xyz host name - xxxx internal ip - xxx comments - a;ldkjfalkdjf currently have following code, when joined returns nothing $loginid = $_post['loginid'] ; $internal=$_server['server_addr']; $hostname = gethostbyaddr($_server['remote_addr']); $inquiry = $_post['$loginid' . '$internal' . '$hostname' . 'textfield'] ; mail( "email@email.com", "subject", "$inquiry" "from: $email"); how can group desired data , format better in return email? thx! $inquiry = $_po...