Is it possible that in the actual mail() function, where I have used variables, is literally reading the single quotation marks?
In the following example, the single quotes are necessary. Is this because it is the proper way to assign a value to a variable or because the mail() function needs it?
$variable1 = 'mail@example.com';
Normally, mail() reads like this:
mail('mail@example.com', 'blah blah blah', 'buddy@home.com');
But, if I use Axo's example, is it trying to use the mail function with double quotes, like this? -->
mail("mail@example.com", "blah blah blah", "buddy@home.com");
Like I said, it works, but only if I write the code like this:
$mailcontent = 'Customer name:' . $name .'\n';
but the end result in my email body is:
Customer name: wheeler08\n