I'm trying to use a variable inside a table style for php email but I can't make it work, please help
$message .= '<table rules="all" style="background-color: {'$pnlclr1';}" cellpadding="0">';
I'm trying to use a variable inside a table style for php email but I can't make it work, please help
$message .= '<table rules="all" style="background-color: {'$pnlclr1';}" cellpadding="0">';
$message .= '<table rules="all" style="background-color: '.$pnlclr1.';" cellpadding="0">';
no need of curly braces {}
alternatively if you wrap the table tag in double quotes you can reference the variable without the need for concatenation
$message .= "<table rules='all' style='background-color:$pnlclr1' cellpadding='0'>";