con php mailer vorrei inviare una email, posto la parte iniziale del codice:
le prime variabili collegate all'html funzionano, come ad esempio '.$rowutente["ragione_sociale"].'
se invece collego più codice php non funziona più, ad esempio
'.
while($rowrisposte=mysql_fetch_array($result_rispo ste)){
$idcorsieventodomande = $rowrisposte["id_corsi_evento_domande"];
.'
perchè
Codice PHP:
$html_body = '
<html>
<head>
<style>
.testo1{text-align:right;color: #CF150E; FONT-FAMILY: Verdana; FONT-SIZE: 15px; TEXT-DECORATION: none; font-weight:bold}
.testo2{text-align:right;color: #000000; FONT-FAMILY: Verdana; FONT-SIZE: 12px; TEXT-DECORATION: none; font-weight:bold}
.testo3{text-align:right;color: #666666; FONT-FAMILY: Verdana; FONT-SIZE: 12px; TEXT-DECORATION: none; font-weight:bold}
a.testo3:link {BACKGROUND: none; COLOR: #666666; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none; font-weight:bold}
a.testo3:active {BACKGROUND: none; COLOR: #666666; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none; font-weight:bold}
a.testo3:visited {BACKGROUND: none; COLOR: #666666; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none; font-weight:bold}
a.testo3:hover {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none; font-weight:bold}
</style>
</head>
<body>
<table width="700" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right" background="http://www.adamis.it/images/fondo_email.jpg">
<table width="680" height="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="660" height="160"></td>
<td width="20" rowspan="16"></td>
</tr>
<tr>
<td height="50" align="right" class="testo1">
Gentile '.$rowutente["ragione_sociale"].''.$rowutente["nome"].' '.$rowutente["cognome"].'
abbiamo ricevuto correttamente il tuo test.</p>
A seguire le tue risposte:</p></td>
</tr>
<tr>
<td height="5" align="right"></td>
</tr>
'.while($rowrisposte=mysql_fetch_array($result_risposte)){
$idcorsieventodomande = $rowrisposte["id_corsi_evento_domande"];.'