= 6) && (substr_count($email,"@") == 1) && (substr($email,0,1) != "@") && (substr($email,strlen($email)-1,1) != "@")){ if ((!strstr($email,"'")) && (!strstr($email,"\"")) && (!strstr($email,"\\")) && (!strstr($email,"\$")) && (!strstr($email," "))) { //miro si tiene caracter . if (substr_count($email,".")>= 1){ //obtengo la terminacion del dominio $term_dom = substr(strrchr ($email, '.'),1); //compruebo que la terminación del dominio sea correcta if (strlen($term_dom)>1 && strlen($term_dom)<5 && (!strstr($term_dom,"@")) ){ //compruebo que lo de antes del dominio sea correcto $antes_dom = substr($email,0,strlen($email) - strlen($term_dom) - 1); $caracter_ult = substr($antes_dom,strlen($antes_dom)-1,1); if ($caracter_ult != "@" && $caracter_ult != "."){ $mail_correcto = 1; } } } } } if ($mail_correcto) return 1; else return 0; } if(isset($_REQUEST['btnEnviar'])){ if ($_SESSION['tmptxt'] == $_GET['txtCap']) { $res = comprobar_email($_GET['txtEma']); if($res==1){ $para='yeisson@creasotol.com'; $asunto='[CONTACTOS] - '.$_SERVER['HTTP_HOST']; $mensaje = " :.. Contactos..: Una persona ha enviado un mensaje a traves de la pagina web:

Fecha Envio: ".date('Y-m-d')."

Nombre: ".$_GET['txtNom']."
Telefono: ".$_GET['txtTel']."
Correo Electronico: ".$_GET['txtEma']."
Ciudad: ".$_GET['txtCiu']."
Comentario:
".$_GET['txtCom']."




Enviado desde, Pagina Web
Beauty and Health Magazine
www.".basename($_SERVER['HTTP_HOST'])."


NOTA: Por favor, no responder a este correo automatico. "; $mail = new PHPMailer(); $mail->Host = "localhost"; $mail->From = "seguridad@creasotol.com"; $mail->FromName = $_GET['txtNom']; $mail->Subject = $asunto; $mail->AddAddress($para,"Beauty And Health Magazine"); //$mail->AddAddress("destino2@correo.com","Nombre 02"); //$mail->AddCC("tolituribague@gmail.com"); //$mail->AddBCC("usuariocopiaoculta@correo.com"); $mail->Body = $mensaje; $mail->AltBody = "Envio Seguro"; $mail->Send(); unset($_SESSION['datosForm']); $_SESSION['aviso']=':.. Su mensaje se ha enviado con exito ..:'; } }else{ $_SESSION['datosForm']=array('nom'=>$_GET['txtNom'], 'ema'=>$_GET['txtEma'], 'tel'=>$_GET['txtTel'], 'ciu'=>$_GET['txtCiu'], 'com'=>$_GET['txtCom']); $_SESSION['aviso']=':.. Codigo de seguridad no valido ..:'; } header('location: '.$_SERVER['PHP_SELF']); exit(); } ?> CONTACTO - BEAUTY AND HEALTH MAGAZINE - colombia - www.beautyandhealthmagazine.com
Suscribete ahora
CONTACTO


U.S.A.


2861 NE 185th Street # 304
Aventura, FL. 33180
Teléfono: 305.857.5520
Fax: 305.857.5530
Correo: info@beautyandhealthmagazine.org

COLOMBIA - BOGOTA


Móvil: (+57) 321-337 1652
Móvil: (+57) 321-332 2152
Correo: ventas@beautyandhealthmagazine.org

Diligencie el siguiente formulario para contactarnos:





Publicidad

  • 4
  • 1
  • 2
  • 3