I am using PHPMailer and I have having a problem getting a variable($name) to display in my HTML version of the message. The variable is embedded within the code for another variable $Body.
$Body ='
<html>
<head>
<title></title>
</head>
<body>
<p>Dear $name,</p>
........more code
';
My question is this: how do I make a call to a variable within a variable? Do I need to use double quotes instead of single here as shown in this example?
// HTML body
$body = "Hello <font size=\"4\">" . $row["full_name"] . "</font>, <p>";
Any help would be great, I am just not certain how to call the variable and was unable to find an example.
Thanks for your time to help!