Nie mogę wysłać wiadomości e-mail, aby wysyłać podczas używania SMTP z aplikacją codeigniter.Koder SMTP Błąd e-mail
Istnieje wiele podobnych pytań na temat SO, ale żaden z nich nie rozwiązuje mojego problemu, dlatego proszę o ponowne.
Oto błąd Dostaję:
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: Tue, 22 Apr 2014 22:54:12 -0400
From:
Return-Path:
To: [email protected]
Subject: =?utf-8?Q?Request_from_C&J_Builders_Contact_form?=
Reply-To: "[email protected]&JBuilders.us"
X-Sender: [email protected]&JBuilders.us
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]&JBuilders.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
From: jeff
Email: [email protected]
Phone: 555555555
Message: asdfs fds
Here's my config/email.php:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
$config['useragent'] = "CodeIgniter";
$config['protocol'] = "smtp";
$config['_smtp_auth'] = TRUE;
$config['smtp_host'] = "smtp.zoho.com";
$config['smtp_user'] = "[email protected]jbuilders.info";
$config['smtp_pass'] = "mypassword";
$config['smtp_port'] = 465;
$config['wordwrap'] = TRUE;
$config['wrapchars'] = 76;
$config['mailtype'] = "text";
$config['charset'] = "utf-8";
$config['validate'] = FALSE;
$config['priority'] = 3;
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
$config['bcc_batch_mode'] = TRUE;
$config['bcc_batch_size'] = "200";
?>
Oto mój kontroler fragment, który wysyła e-mail:
// sends the email to
$this->email->from('[email protected]&JBuilders.us');
$this->email->to('[email protected]');
$this->email->subject('Request from C&J Builders Contact form');
$this->email->message('From: '.$this->input->post('name')."\n".
'Email: '.$this->input->post('email')."\n".
'Phone: '.$this->input->post('phone')."\n".
'Message: '.$this->input->post('message')."\n");
$this->email->send();
echo $this->email->print_debugger();
spróbuj dodać konfigurację '$ config ['smtp_crypto'] = 'ssl';' jej nie ma w oficjalnych dokumentach, niektóre serwery SMTP wymagają ss l uwierzytelnianie. – tomexsans
Nie robi nic innego. Ta strona mówi, że zoho wymaga ssl https://www.zoho.com/mail/faq.html – Catfish
mówi SSL na linku podałeś mi – tomexsans