Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/12/2006, 16:18
Avatar de blas9
blas9
 
Fecha de Ingreso: septiembre-2006
Ubicación: en algun lugar
Mensajes: 55
Antigüedad: 17 años, 8 meses
Puntos: 0
Re: como envio una tabla

ya hice algo y lo mando asi pero no me funciona alguien me puede ayudar
esto es lo que tengo
/********************************************/
$asunto=$_POST['asunto'];
$from = $_POST['nombre'];
$to=$_POST['email'];
$_pagi_sql="SELECT u.Nombre,u.Area,u.plantel,d.Nombre_d,d.Nivel,d.Fec ha,p.codigo FROM documento as d,permisos as p, usuarios as u where p.login='vero1' and d.Codigo=p.codigo and u.login=p.login";
$_pagi_cuantos = 5;
include("paginator.inc.php");
if ($row = mysql_fetch_array($_pagi_result)){

$tabla="<table border=\"1\" bordercolor=\"#223C55\"align=\"center\" class=\"champ\">";
$tabla.="<tr bgcolor=\"#336666\">
<td class=\"champ3\">Nombre del Usuario</td>
<td class=\"champ3\">Área</td>
<td class=\"champ3\">Plantel</td>
<td class=\"champ3\">Nombre del Documento</td>
<td class=\"champ3\">Nivel</td>
<td class=\"champ3\">Fecha</td>
<td class=\"champ3\">Código</td>
</tr>";

do {

$tabla.="<tr>
<td >".$row["Nombre"]."</td>
<td >".$row["Area"]."</td>
<td >".$row["plantel"]."</td>
<td >".$row["Nombre_d"]."</td>
<td >".$row["Nivel"]."</td>
<td>".$row["Fecha"]."</td>
<td>".$row["codigo"]."</td>
</tr>";
} while ($row = mysql_fetch_array($_pagi_result));
$tabla.="</table><br>";
}


$header = "From: $from";
$header .= "X-Mailer:PHP/".phpversion()."\n";
$header .= "Mime-Version: 1.0\n";
$header .= "Content-Type: text/html";
mail("[email protected]",$tabla,$header);
**********************************************

pero me marca este error

Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [email protected] in c:\archivos de programa\easyphp1-8\www\blas\envioreporte.php on line 46