Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/08/2010, 14:11
fabayan
 
Fecha de Ingreso: septiembre-2009
Mensajes: 87
Antigüedad: 14 años, 7 meses
Puntos: 1
Respuesta: Mails desde localhost con gmail

Te cuento: el problema está en la configuración interna de Joomla. Tienes que modificar los parametros de la conexión SMPT a los siguientes valores:

Programa de correo: servidor smtp
Direccion de remitente: tudireccion@
Nombre: tu nombre
Ruta: /usr/sbin/sendmail
Autenticacion: Si
Seguridad: SSL
Puerto: 465
Usuario: tu mail completo
Contraseña: tu pass
Servidor SMTP: smpt.gmail.com

y modificar el archivo phpmailer de la carpeta libraries/phpmailer para que tu archivo phpmailer.php quede adaptado al protocolo de seguridad que tiene gmail algo como esto:


Código:
  /////////////////////////////////////////////////
  // PROPERTIES FOR SMTP
  /////////////////////////////////////////////////

  /**
   * Sets the SMTP hosts.  All hosts must be separated by a
   * semicolon.  You can also specify a different port
   * for each host by using this format: [hostname:port]
   * (e.g. "smtp1.example.com:25;smtp2.example.com").
   * Hosts will be tried in order.
   * @var string
   */
  var $Host        = 'ssl://smtp.gmail.com:465';

  /**
   * Sets the default SMTP server port.
   * @var int
   */
  var $Port        = 465;

  /**
   * Sets the SMTP HELO of the message (Default is $Hostname).
   * @var string
   */
  var $Helo        = '';

  /**
   * Sets connection prefix.
   * Options are "", "ssl" or "tls"
   * @var string
   */
  var $SMTPSecure = "true";

  /**
   * Sets SMTP authentication. Utilizes the Username and Password variables.
   * @var bool
   */
  var $SMTPAuth     = false;

  /**
   * Sets SMTP username.
   * @var string
   */
  var $Username     = '[email protected]';

  /**
   * Sets SMTP password.
   * @var string
   */
  var $Password     = 'password de tu cuenta';

  /**
   * Sets the SMTP server timeout in seconds. This function will not
   * work with the win32 version.
   * @var int
   */
  var $Timeout      = 10;

  /**
   * Sets SMTP class debugging on or off.
   * @var bool
   */
  var $SMTPDebug    = false;

  /**
   * Prevents the SMTP connection from being closed after each mail
   * sending.  If this is set to true then to close the connection
   * requires an explicit call to SmtpClose().
   * @var bool
   */
  var $SMTPKeepAlive = false;

  /**
   * Provides the ability to have the TO field process individual
   * emails, instead of sending to entire TO addresses
   * @var bool
   */
  var $SingleTo = false;

  /
Espero que te sirva.

Saludos