require('includes/application_top.php');
require('includes/functions/emailhtml.php');
// Verificación y envío de emails
$error = false;
if ($HTTP_GET_VARS['action'] == 'send') {
if(!$HTTP_POST_VARS['email'] || !$HTTP_POST_VARS['nombre']){
header('Location: ' . 'contacto.php?sector='.$sector.'&error=1');}
if (tep_validate_email(trim($HTTP_POST_VARS['email']))) {
#email al gerente
tep_mail($STORE_OWNER,$HTTP_POST_VARS['emailsector'] ,$EMAIL_SUBJECT_SECTOR,
'Nombre de Empresa o solicitante: '.$HTTP_POST_VARS['nombre'].
'