Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/04/2010, 15:05
Avatar de neodani
neodani
 
Fecha de Ingreso: marzo-2007
Mensajes: 1.811
Antigüedad: 17 años, 2 meses
Puntos: 20
Respuesta: Ayuda PHPMailer

Cita:
Iniciado por DavidBL Ver Mensaje
ya habia visto esta pagina pero habla de hotpot o algo asi yo quiero GMAIL
Lo primero que tienes que mirar es que desde el hosting puedas conectarte a gmail, te paso un script que tienes que subir y ejecutar en el servidor.

Código PHP:
Ver original
  1. $address ="smtp.gmail.com"; //Here you can specify the address you want to check ports
  2. $port = "465"; //Here you can specify the port you want to check from $address
  3. $checkport = fsockopen($address, $port, $errnum, $errstr, 2); //The 2 is the time of ping in secs
  4.  
  5. //Here down you can put what to do when the port is closed
  6. if(!$checkport){
  7.        echo "The port ".$port." from ".$address." seems to be closed.";  //Only will echo that msg
  8. }else{
  9.  
  10. //And here, what you want to do when the port is open
  11.        echo "The port ".$port." from ".$address." seems to be open."; //The msg echoed if port is open
  12. }

Salu2!