Ver Mensaje Individual
  #21 (permalink)  
Antiguo 11/05/2005, 15:39
Avatar de maralbust
maralbust
 
Fecha de Ingreso: febrero-2004
Ubicación: Santiago
Mensajes: 578
Antigüedad: 20 años, 2 meses
Puntos: 0
Prueba con este haber si funciona a mi me funca rebien


mail.html
Código HTML:
<form name=formname action="sending.php" method=post>

  <p></p>
  <p></p>
  <p></p>
  <div> 
    <table width="500" height="1" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td bgcolor="#004080"><font color=white face=Verdana size=2><b>Formulario de E-mail</b></font></td>
      </tr>
      <tr>
        <td><img src="../meuno/images/spacer.gif" width="1" height="5"></td>
      </tr>
    </table>
    <table width="500" height="68" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td><font color=darkblue face=Verdana size=1><strong>De</strong></font></td>
        <td> 
          <input class="t_n" type="text" name="sender" size="60">
        </td>
    </tr>
    <tr> 
        <td><font color=darkblue face=Verdana size=1><strong>Para</strong></font></td>
        <td> 
          <input class="t_n" type="text" name="receiver" size="60">
        </td>
    </tr>
    <tr> 
        <td> <font color=darkblue face=Verdana size=1><strong>Mensaje</strong></font> 
        </td>
      <td>
          <input class="t_n" type="text" name="subject" size="60">
        </td>
    </tr>
  </table>
    <table width="500" height="1" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td><img src="../meuno/images/spacer.gif" width="1" height="5"></td>
      </tr>
      <tr>
        <td  bgcolor="#004080">&nbsp;</td>
      </tr>
      <tr> 
        <td><img src="../meuno/images/spacer.gif" width="1" height="5"></td>
      </tr>
    </table>
    <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="28%"> 
          <div align="center"><font size="1" face="Verdana" color="#004080">FontColor</font></div>
        </td>
        <td width="20%"> 
          <div align="center"><font size="1" face="Verdana" color="#004080">bgColor</font></div>
        </td>
        <td width="21%"> 
          <div align="center"><font size="1" face="Verdana" color="#004080">FontType</font></div>
        </td>
        <td width="21%"> 
          <div align="center"><font size="1" face="Verdana" color="#004080">FontSize</font></div>
        </td>
        <td width="10%"> 
          <div align="center"><font size="1" face="Verdana" color="#004080">Priority</font></div>
        </td>
      </tr>
      <tr> 
        <td width="28%"><font color="#148FB8"> 
          <center>
            <select name="fontcolor" class="t_n">
             <option value="black" class=black>black</option>
             <option value="white">white</option>
              <option value="red" class=red>red</option>
              <option value="blue" class=blue>blue</option>
              <option value="yellow" class=yellow>yellow</option>
              <option value="silver" class=silver>silver</option>
              <option value="aqua" class=aqua>aqua</option>
            </select>
          </center>
          </font></td>
        <td width="20%"><font color="#148FB8"> 
		<center>
          <select name="bgcolor" class="t_n">
            <option value="white">white</option>
            <option value="black" class=black>black</option>
             <option value="red" class=red>red</option>
            <option value="blue" class=blue>blue</option>
            <option value="yellow" class=yellow>yellow</option>
            <option value="silver" class=silver>silver</option>
            <option value="aqua" class=aqua>aqua</option>
          </select>
		  </center>
          </font></td>
        <td width="21%"><font color="#148FB8">
		<center>
          <select name="fontface" class="t_n">
            <option value="Verdana" >Verdana</option>
            <option value="Times New Roman" >Times New Roman</option>
            <option value="Times" >Times</option>
            <option value="Helvetica" >Helvetica</option>
            <option value="Courier" >Courier</option>
            
          </select>
		  </center>
          </font></td>
        <td width="21%">
		<font color="#148FB8">
		<center>
          <select name ="fontsize" class="t_n">
            <option value="1">1</option>
			<option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
			<option value="+1">+1</option>
			<option value="+2">+2</option>
			<option value="+3">+3</option>
          </select>
		  </center>
          </font></td>
        <td width="10%"><font color="#148FB8"> 
		<center>
          <select name ="prio" class="t_n">
            <option value="3">Normal</option>
            <option value="5">Low</option>
            <option value="1">Hight</option>
          </select>
		  </center>
          </font></td>
      </tr>
    </table>
	<table width="500" height="2" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td height="0"><img src="../meuno/images/spacer.gif" width="1" height="5"></td>
      </tr>
      <tr>
        <td height="1"  bgcolor="#004080">&nbsp;</td>
      </tr>
    </table>
    <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center"><font color=darkblue face=Verdana size=2><strong>Mensaje</strong></font><p>
            <textarea class="t_n" name="message" cols="75" rows="15" wrap="VIRTUAL"></textarea>
          </p></td>
      </tr>
    </table>
    <p align="center">
      <input class="t_n" type="submit" name="Submit" value="Enviar">
    </p>
</div>
</form> 

sending.php
Código PHP:
<?
$headers 
.="MIME-Version: 1.0 \n";
$headers .="From:[email protected] \n";
$headers .="X-Mailer: WEbMailer \n";
$headers .="X-Priority:$prio  \n";
$headers .="Content-Type: text/html; charset=$charset \n";
$date=date("d-m-Y");
$message_new="<html><head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$charset\">
</head>
<body bgcolor=$bgcolor>
<font face=Verdana size=2 color=$fontcolor><b>$date</b></font>
<hr>
<font face=Verdana size=1><b><font face=Verdana size=1>$name_user</b>:$sender<br></font>
<font face=Verdana size=1><b><font face=Verdana size=1>$subject_user</b>:$subject<br> </font>
<p><font color=$fontcolor size=$fontsize face=$fontface>$message</font></p>"
;

 
$statusmail($receiver,$subject,$message_new,$headers);
    if (
$status==1){
      echo
"<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=index.php\">";
       }
    else{
    echo
"Error";
    echo
"<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2;URL=index.php\">";

       }
?>
salu2
__________________
..:: NADA SE PIERDE SOLO SE TRANSFORMA ::..