2012-07-01 12 views
5
त्रुटियों की

im हो रही गुच्छा हर मैं भेजने का प्रयास विफल ईमेल:CodeIgniter में अधिकार का प्रवेश आदेश भेजने के लिए

hello: 
The following SMTP error was encountered: 
Failed to send AUTH LOGIN command. Error: 
from: 
The following SMTP error was encountered: 
to: 
The following SMTP error was encountered: 
data: 
The following SMTP error was encountered: 

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: Sun, 1 Jul 2012 20:47:47 +0000 
From: "Rapphie" 
Return-Path: 
To: [email protected] 
Subject: =?iso-8859-1?Q?Email_Test?= 
Reply-To: "[email protected]" 
X-Sender: [email protected] 
X-Mailer: CodeIgniter 
X-Priority: 3 (Normal) 
Message-ID: <[email protected]> 
Mime-Version: 1.0 

// ..

अच्छी तरह से मुझे नहीं कुछ भी गलत दिखाई, लेकिन वास्तव में, शायद im लापता इस जैसे क्योंकि यह मुझे एक और त्रुटि देता है: कुछ बड़ा .. यहाँ क्या मैं अपने नियंत्रक में है है ..

$config = Array(
    'protocol' => 'smtp', 
    'smtp_host' => 'smtp.googlemail.com', 
    'smtp_port' => 465, 
    'smtp_user' => '[email protected]', 
    'smtp_pass' => '****', 
    'mailtype' => 'html', 
    'charset' => 'iso-8859-1' 
); 
$this->load->library('email', $config); 

      $this->email->from('[email protected]','Rapphie'); 
      $this->email->to($email,'Charmie'); 
      $this->email->subject('Email Test'); 
      $this->email->message('Testing the email class.'); 

      $this->email->send(); 

      echo $this->email->print_debugger(); 

मैं "//smtp.gmail.com ssl": का उपयोग न

fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" 
+0

आप कुछ भी गलत नहीं दिख रहा है, "की तर्ज पर आप एक SMTP मेल सेवा की जरूरत नहीं है कॉन्फ़िगर किया गया? " –

+0

अब आपने इसका उल्लेख किया है .. मैं इस तरह कैसे कॉन्फ़िगर कर सकता हूं? मैं पहले – Charmie

+0

पर शोध कर रहा हूं क्या आपने कभी इस मुद्दे को समझ लिया है? क्या आप अपना समाधान पोस्ट कर सकते हैं? – Catfish

उत्तर

2

कोशिश इस

$from = '[email protected]'; 
$to = '[email protected]'; 
$subject = 'your subject'; 
$message = 'your message'; 

$this->load->library('email'); 

$config['mailtype'] = 'html'; 
$config['smtp_port']='465'; 
$config['smtp_timeout']='30'; 
$config['charset']='utf-8'; 
$config['protocol'] = 'smtp'; 
$config['mailpath'] = '/usr/sbin/sendmail'; 
$config['charset'] = 'iso-8859-1'; 
$config['wordwrap'] = TRUE; 

$this->email->initialize($config); 
$this->email->from($from); 
$this->email->to($to); 
$this->email->subject($subject); 
$this->email->message($message); 

// Sending Email 
$this->email->send(); 
+0

सही कारण नहीं पता लेकिन $ config ['smtp_timeout'] = '30' संलग्न करके; और $ config ['mailpath'] = '/ usr/sbin/sendmail'; मेरी समस्या हल हो गई – tjPark

0

चांदी की गोली यहाँ

$config['newline'] = "\r\n";

संबंधित मुद्दे