How do I pass a variable into an email header? I had it set up with an email address, such as
$headers .= 'From: name@domain.com';
But now I want to be able to run a query for the person that’s logged in and get the result, such as
$email = $row_user[‘email’];
And then want to do something along the lines of
$headers .= 'From: $email';
I’ve tried all sorts of combinations, but can’t seem to get it to work.