Buenas tengoen Windows XP un CMS Joomla verion 1.0.x instalado en local con el servidor apache mysql etc etc etc ( el Pack XAMPP) todo va correctamente excepto la funcion mail , la trate de configurar leyendo en un foro pero no me funciona,( tngo una cuenta no-ip que redireciona a la pagina tambien ), y esto es el php.ini por donde el mail: (tengo el puerto 465 abierto en el router tambien y el 25 .
[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 465
; For Win32 only.
;sendmail_from = XXXxxx@gmail.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
esto lo que modifique del phpmailer que ahi en includes:
Archivo class.phpmailer.php/////////////////////////////////////////////////
// SMTP VARIABLES
/////////////////////////////////////////////////
/**
* 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 = "smtp.gmail.com";
/**
* Sets the default SMTP server port.
* @var int
*/
var $Port = 465; // el original estaba a 25
/**
* Sets the SMTP HELO of the message (Default is $Hostname).
* @var string
*/
var $Helo = "";
/**
* Sets SMTP authentication. Utilizes the Username and Password variables.
* @var bool
*/
var $SMTPAuth = true; // estaba a false en el original
/**
* Sets SMTP username.
* @var string
*/
var $Username = "MinombredeusuarioDEGMail";
/**
* Sets SMTP password.
* @var string
*/
var $Password = "MiContraseñadeGMail";
archivo class.smtp.phpclass SMTP
{
/**
* SMTP server port
* @var int
*/
var $SMTP_PORT = 465;// estaba a 25 en original
//*NOTA: Tengo el servidor MErcury que instala el pack XAMPP por si no me diarais alguna solucion seria como configurar el servidor mercury))