Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/07/2012, 08:14
SamuraiBlanco
 
Fecha de Ingreso: marzo-2010
Ubicación: Mérida, Venezula
Mensajes: 73
Antigüedad: 14 años, 1 mes
Puntos: 0
Problemas con codeigniter email

Saludos usuarios, estoy teniendo problemas para mandar un correo usando la clase Email de codeigniter. Estoy obteniendo este error.

Código:
The following SMTP error was encountered: 0 
Unable to send data: AUTH LOGIN
Failed to send AUTH LOGIN command. Error: 
Unable to send data: MAIL FROM:
from: 
The following SMTP error was encountered: 
Unable to send data: RCPT TO:
to: 
The following SMTP error was encountered: 
Unable to send data: DATA
data: 
The following SMTP error was encountered: 
Unable to send data: User-Agent: CodeIgniter Date: Tue, 10 Jul 2012 22:03:04 -0430 From: Return-Path: To: [email protected] Subject: =?utf-8?Q?Recuperar_contrase=c3=b1a_Vinos_Don_Jose?= Reply-To: "[email protected]" X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_4ffce5e095a19" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_4ffce5e095a19 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit --B_ALT_4ffce5e095a19 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable --B_ALT_4ffce5e095a19--
Unable to send data: .

The following SMTP error was encountered: 
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter
Date: Tue, 10 Jul 2012 22:03:04 -0430
From: 
Return-Path: 
To: [email protected]
Subject: =?utf-8?Q?Recuperar_contrase=c3=b1a_Vinos_Don_Jose?=
Reply-To: "[email protected]" 
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


Content-Type: multipart/alternative; boundary="B_ALT_4ffce5e095a19"

This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ALT_4ffce5e095a19
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit




--B_ALT_4ffce5e095a19
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable



--B_ALT_4ffce5e095a19--
El código a partir del cual se origina es el siguiente:

Código PHP:
        notificacion(){
        
$opciones=array();        
        
$opciones["url"]="http://donjoseve.com.ve";
        
$opciones["usuario"]="usuario_de_prueba";
        
$opciones["usuario_email"]="[email protected]";
        
$opciones["from"]="[email protected]";
        
$opciones["password"]=uniqid();
        
$reemplazar=array("%sistema%","%usuario%","%password%");
        
$sustitutos=array($opciones["url"],$opciones["usuario"], $opciones["password"]);
        
$this->load->helper("file");
        require(
APPPATH."/config/email.php");
            
        
$this->load->library("email",$config);
        
$mensaje_base=read_file('views/plantillas/ayuda_recuperar_password.html');
        
$mensaje_mod=str_replace($reemplazar,$sustitutos,$mensaje_base);
        
        
        
        
$this->email->from($opciones["from"]);
        
$this->email->to($opciones["usuario_email"]);
        
$this->email->subject("Recuperar contraseña Vinos Don Jose");
        
$this->email->message($mensaje_mod);
        
$this->email->send();
        
$this->email->print_debugger();


Y el archivo config es el que sigue.
Código PHP:
<?php
$config
["protocol"]="smtp";
$config["smtp_host"]="ssl://smtp.googlemail.com";
$config["smtp_user"]="[email protected]";
$config["smtp_port"]='465';
$config["smtp_pass"]="miclave";
$config["smtp_timeout"]='7';
$config["charset"]='utf-8';
$config["newline"]='\r\n';
$config["mailtype"]="html";
$config['validation']=TRUE;
?>
Agradezco cualquier apoyo que me puedan prestar, este asunto me tiene varado en el desarrollo :-/