De antemano agradecerles por su tiempo y ayuda.
Salu2,
yo
Código PHP:
<? // este es el codigo de la pagina
if ($_GET['act']==8){ if($_POST['snd2']){
$from =$_POST['mail'];
$subject =$_POST['bis'];
$message =$_POST['msn'];
$message = wordwrap(str_replace('\n.','\n..', $message));
$to ='[email protected]';
$encabezado = "From: <$from>";
$encabezado .= "\nReply-To: $from";
$encabezado .= "\nX-Mailer: PHP/" . phpversion();
$sujeto = "Nuevo Correo";
$mensaje = "Email: $from\n";
$mensaje .= "Msg: $message\n";
if(!mail($to, $subject, $message, $encabezado))
{
echo "<h6>No se pudo enviar el Mensaje</h6>";
exit();
}
else
{
/* aqui redireccionamos a la pagina de respuesta */
echo '<table width="500" border="0" cellspacing="0" cellpadding="0" class="frase">
<tr>
<td>
<p>Muchas Gracias por su coolaboración su mensaje ha sido enviado. Ahora
usted será redirigido hacia la pagina de inicio para que pueda continuar
su visita. <br><br>Sin mas,<br>
WEBMaster</p>
</td>
</tr>
</table>
<meta HTTP-EQUIV="refresh" content="5;url=http://www.cuidad.jovenclub.cu">';
}
}
?>
[mail function]
; For Win32 only.
SMTP = "192.168.54.3"
; For Win32 only.
sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_paramaters =