Gracias por su respuesta oportuna, anexo el codigo correspondiente al archivo messaguecli.php.
Código Java:
Ver original<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta name="author" content="gencyolcu" />
<title>Contactar al cliente</title>
<link rel="stylesheet" href="buttons.css" type="text/css" media="screen" />
<style type="text/css">
<meta charset="utf-8">
@import url("style.css");
</style>
</head>
<body background="bg_top_img_3.jpg">
<img aling = top left src= "logo_inicial_3.png">
<?php
session_start();
?>
<form>
<!--<body background="bgimage.jpg"> -->
<table border="1" cellspacing="0">
<TR>
<TH>Fecha</TH>
<TD><input name="fecha" value="<?php echo date("Y-m-d");?>" READONLY /></TD>
<TH>Usuario</TH>
<TD><input name="Usuario" value="<?php echo $_SESSION['usuario'];?>" READONLY /></TD>
</table><br>
</form>
</br>
</br>
</br>
</br>
<h1>Contacto al cliente.</h1>
<form name="frmContacto" method="post" action="sendbymail.php">
<table width="500px">
<table border="2" cellspacing="0">
<tr>
<td>
<label for="first_name">Nombre: *</label>
</td>
<td>
<input type="text" name="first_name" maxlength="50" size="25">
</td>
</tr>
<tr>
<td valign="top"">
<label for="last_name">Apellido: *</label>
</td>
<td>
<input type="text" name="last_name" maxlength="50" size="25">
</td>
</tr>
<tr>
<td>
<label for="email">Dirección de E-mail: *</label>
</td>
<td>
<input type="text" name="email" maxlength="80" size="35">
</td>
</tr>
<tr>
<td>
<label for="telephone">Número de teléfono:</label>
</td>
<td>
<input type="text" name="telephone" maxlength="25" size="15">
</td>
</tr>
<tr>
<td>
<label for="comments">Comentarios: *</label>
</td>
<td>
<textarea name="comments" maxlength="500" cols="30" rows="5"></textarea>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:right">
<input type="submit" class= "button blue" value="Enviar">
</td>
</tr>
</table>
</form>
</div><br>
<footer>
<center> <div class="wrapper">
<section class="lower">
<h4>
<a rel="nofollow" href="http://www.templatemonster.com/" target="_blank">Website Template</a> <font color="black">Desarrollado por Rafael Hernando Riveros <a rel="nofollow" href="http://estudios.unad.edu.co/tecnologia-en-desarrollo-de-software/plan-de-estudios/tecnologia-de-sistemas-plan-de-estudios-antiguo-2006" target="_blank">Tecnologia en Sistemas</a> <a rel="nofollow" <a rel="nofollow" href="https://www.unad.edu.co" target="_blank">UNAD</a> <a rel="nofollow" href="http://centro.unad.edu.co/girardot" target="_blank">Cead Girardot ZCBC</a> Aplicacion web de gestion para soporte tecnico</font>
<section class="lower">
</h4>
</body>
</html>
imagen del error:
codigo del archivo senbymail.php
Código PHP:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Validar mensaje</title>
</head>
<body>
</body>
</html>
<?php
if(isset($_POST['email'])) {
// Debes editar las próximas dos líneas de código de acuerdo con tus preferencias
//$email_subject = "Contacto desde el sitio web";
$email_subject = "Contacto desde el sitio web de la Aplicacion ControlServiceOnline";
// Aquí se deberían validar los datos ingresados por el usuario
if(!isset($_POST['first_name']) || !isset($_POST['last_name']) || !isset($_POST['email']) || !isset($_POST['telephone']) || !isset($_POST['comments'])) {
echo "<b>Ocurrió un error y el formulario no ha sido enviado. </b><br />";
echo "Por favor, vuelva atrás y verifique la información ingresada<br />";
}
$email_message = "Detalles del formulario de contacto:\n\n";
$email_message .= "Nombre: " . $_POST['first_name'] . "\n";
$email_message .= "Apellido: " . $_POST['last_name'] . "\n";
$email_message .= "E-mail: " . $_POST['email'] . "\n";
$email_message .= "Teléfono: " . $_POST['telephone'] . "\n";
$email_message .= "Comentarios: " . $_POST['comments'] . "\n\n";
// Ahora se envía el e-mail usando la función mail() de PHP
$headers = 'From: '.$email_from."\r\n". //esta es la linea 44
'Reply-To: '.$email_from."\r\n" . //esta es la linea 45
@mail($email_to, $email_subject, $email_message, $headers);
echo "¡El formulario se ha enviado con éxito!";
}
?>
Gracias