I'm trying to set an if statement in my email body but I got this error. This is the part of the body message in my PHP code:
$body = <<<EOD
<strong>Tipo contatto:</strong> $contacttype <br>
EOD;
$body .= $contacttype == "telefonopref" ? "<strong>Chiamatemi in questo orario:</strong>".$orariotel."<br>"; <!-- line with error -->
$body.= <<<EOD
<strong>Contatto:</strong> $contatto <br>
<strong>Messaggio:</strong> $message <br>
EOD;
What's wrong? Any suggestion on how I should write it correctly? Thanks in advance.