fil79
10-01-2008, 01:59
Boas
tenho este código para enviar mail:
$corpo= "
<html>
<body>
<table width='378' border='5' bordercolor='#000066'>
<tr>
<th width='145' scope='row'><img src='http://www........../.....jpg' width='100' height='39' /></th>
<td width='217'>".$_POST['nome']."</td>
</tr>
<tr>
<th scope='row'>Telefone</th>
<td>".$_POST['telefone']."</td>
</tr>
<tr>
<th scope='row'>Local</th>
<td>".$_POST['local']."</td>
</tr>
<tr>
<th scope='row'>Hora</th>
<td>".$_POST['hora']."</td>
</tr>
<tr>
<th scope='row'>Dia</th>
<td>".$_POST['dia']."</td>
</tr>
<tr>
<th scope='row'>Notas</th>
<td>".$_POST['notas']."</td>
</tr>
</table>
".$fofoca."
</body>
</html>";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:".$_POST['nome']."\n";
$to = "algo@gmail.com";
$subject = "Mensagem de ".$_POST["nome"]." ";
$message = $corpo;
mail($to, $subject, $message, $headers);
echo "<script> window.alert('A sua mensagem foi enviada.!')</script>"
;
o script funciona bem mas queria que fosse adicionada uma imagem no mail... usei esta tg html <img src='http://www........../.....jpg' mas não aparece a imagem...já verifiquei e a path está correcta...sugestões? Desde já agradeço!
tenho este código para enviar mail:
$corpo= "
<html>
<body>
<table width='378' border='5' bordercolor='#000066'>
<tr>
<th width='145' scope='row'><img src='http://www........../.....jpg' width='100' height='39' /></th>
<td width='217'>".$_POST['nome']."</td>
</tr>
<tr>
<th scope='row'>Telefone</th>
<td>".$_POST['telefone']."</td>
</tr>
<tr>
<th scope='row'>Local</th>
<td>".$_POST['local']."</td>
</tr>
<tr>
<th scope='row'>Hora</th>
<td>".$_POST['hora']."</td>
</tr>
<tr>
<th scope='row'>Dia</th>
<td>".$_POST['dia']."</td>
</tr>
<tr>
<th scope='row'>Notas</th>
<td>".$_POST['notas']."</td>
</tr>
</table>
".$fofoca."
</body>
</html>";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:".$_POST['nome']."\n";
$to = "algo@gmail.com";
$subject = "Mensagem de ".$_POST["nome"]." ";
$message = $corpo;
mail($to, $subject, $message, $headers);
echo "<script> window.alert('A sua mensagem foi enviada.!')</script>"
;
o script funciona bem mas queria que fosse adicionada uma imagem no mail... usei esta tg html <img src='http://www........../.....jpg' mas não aparece a imagem...já verifiquei e a path está correcta...sugestões? Desde já agradeço!