include ("includes/session.tac.php");
include ("includes/rutinas.php");
include ("includes/phpmailer/class.phpmailer.php");
$fecha = date("y/m/d");
$hora = date("H:i:s");
// Guardamos el soporte en la base de datos ...
$query = "INSERT INTO soportes ".
"(id, raiz, cliente, nombre, email, telefono, asunto, comentarios, prioridad, fecha, hora, status) ".
"VALUES (".
"'$id', ".
"'0', ".
"'$cliente', ".
"'$nombre', ".
"'$email', ".
"'$telefono', ".
"'$asunto', ".
"'$comentarios', ".
"'$prioridad', ".
"'$fecha', ".
"'$hora', ".
"'$status');";
$insertar = mysql_query("$query") or error (mysql_error());
$num_id = mysql_insert_id();
// Enviamos un correo si el usuario ha especificado su email ...
$mensaje_correo_html = "Adjuntamos copia del soporte técnico enviado. Si necesita actualizar\n";
$mensaje_correo_html.= "este soporte NO responda a este mensaje. Utilice nuestra herramienta\n";
$mensaje_correo_html.= "de soporte en, http://www.deranet.com/soporte.html
\n\n";
$mensaje_correo_html.= "Hora/Fecha: $hora / $fecha
\n";
$mensaje_correo_html.= "Nombre: $nombre
\n";
$mensaje_correo_html.= "Email: $email
\n";
$mensaje_correo_html.= "Teléfono: $telefono
\n\n";
$mensaje_correo_html.= "Asunto: $asunto
\n";
$mensaje_correo_html.= "Prioridad: $prioridad
\n";
$mensaje_correo_html.= "Estatus: $status
\n";
$mensaje_correo_html.= "Comentarios: $comentarios
\n";
$mensaje_correo_html.= "Deranet Hosting
\n";
$mensaje_correo_html.= "Teléfono: 902.020.093
\n";
$mensaje_correo_html.= "Para clientes fuera de España: +34.922.560.225
\n";
$mail = new PHPMailer();
$mail->Mailer = "smtp";
$mail->Host = "andromeda.tagoror.com";
$mail->SMTPAuth = true;
$mail->Username = "wireless";
$mail->Password = "khz8754";
$mail->From = "NO_RESPONDER_AQUI@tagoror.com";
$mail->FromName = "Soporte Deranet Hosting";
$mail->Sender = "NO_RESPONDER_AQUI@tagoror.com";
$mail->Timeout=30;
$mail->AddAddress("$email");
$mail->Subject = "[$prioridad] DERANET SOPORTE $num_id";
$mail->IsHTML( true );
$mail->Body = "$mensaje_correo_html";
$exito = $mail->Send();
$mail->ClearAddresses();
$mail = new PHPMailer();
$mail->Mailer = "smtp";
$mail->Host = "andromeda.tagoror.com";
$mail->SMTPAuth = true;
$mail->Username = "wireless";
$mail->Password = "khz8754";
$mail->From = "soporte\@tagoror.com";
$mail->FromName = "Soporte Deranet Hosting";
$mail->Sender = "soporte@tagoror.com";
$mail->Timeout=30;
$mail->AddAddress("comercial@tagoror.com");
$mail->AddAddress("deranet@vodafone.es");
$mail->Subject = "SOPORTE $num_id - $cliente";
$mail->IsHTML( true );
$mail->Body = "$mensaje_correo_html";
$exito = $mail->Send();
$mail->ClearAddresses();
?>
Domain Registration and Hosting Support. Register .ph, .com.ph, .com, .net, .org, .info domains names
|
Hosting |
Domains |
Support |
Login |
Sitemap
|
|
Phone: 09289934831
|
 |
|
|
 |
|
 |
|
 |
Ticket have been created
A support ticket has been created and a representative will get back to you shortly.
|