I'm having problems concatinating two strings together to use as a message variable in a php mail function.
In my script I have several different mail function. Each one will use the same $message variable, but will have a different sentence added to the beginning.
If I use just the $message variable or the prefix to it ($requester_message) it works fine. But when I combine the two it doesn't work.
PHP Code:
/* ========================================================
=============== Conformation Email to Requester ======================
===========================================================*/
$requester_message = 'We have received your Request and will be in contact with you shortly.'.$message;
$requester_message1 = wordwrap($requester_message, 70);
mail($requester_email, $subject, $requester_message1, $headers);
I have also tried breaking it down to two lines
PHP Code:
/* ========================================================
=============== Conformation Email to Requester ======================
===========================================================*/
$requester_message = 'We have received your Request and will be in contact with you shortly.';
$requester_message = $requester_message . $message;
$requester_message = wordwrap($requester_message, 70);
mail($requester_email, $subject, $requester_message1, $headers);
Any ideas?