About This Ticket

SMTP Settings

by n_angelo / October 22, 2014, 7:17 am

Hello, thanks for greate tool! I have a problem with SMTP settings in email.php in config folder. I tried to write different smtp account but no email sent to admin address. Could you help me with it? Thanks!

Some code in attach.


Some logs:


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


The following SMTP error was encountered: 


The following SMTP error was encountered: 


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, 21 Oct 2014 17:26:41 +0000
From: "Sent API" <[email protected]>
Return-Path: <[email protected]>
To: [email protected]
Subject: =?utf8?Q?My_awesome_subject?=
Reply-To: "[email protected]" <[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_54469751a4586"

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

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

This appears to be an issue with the mail server. I would suggest showing the error to your hosting provider and see if they can assist. If they won't or can't help, SMTP might not be an option on your server/hosting and you might want to use sendmail instead.

Thank you for reply. I'm using the yandex email smtp server. It is top email provider in Russia. My own script using yandex smtp server and all emails are sent. But your script is not. What do you think about my config file config.php? May be some lines must be commented?


It's not the Yandex smtp server that's the problem; it's the PHP SMTP configuration on your server, the part of PHP which wants to connect with your Yandex SMTP server.

As far as the configuration goes; the only items that need to be set are the server, user and pass, optionally the port number, this is enough for the script to work. Nothing else should have to be configured.

To verify the problem is indeed with PHP SMTP, you could try a few other SMTP configurations, if they all fail with the same error notification, the problem is likely with the configuration of the script hosting your copy of Sent API.

You can also try to turn the debugging on (through the admin panel) and then try to send email and post the entire debug stack here (right now, I can only see some bits and pieces).

OK, thanks. I just change 'smtp' to 'mail'.

How I can chance the subject text to utf-8 charset?

Whatever, all russian text in admin panel looks like that "??????? ??? ?? ???? ??" How to fix it? Thanks


To get the Russian text to display properly, you might want to have a look at the encoding of the MySQL table and make sure it's set to a proper UTF-8 encoding.

Also, I have had another close look at the SMTP issue and I was able to recreate the exact same issue on one of our servers. I ended being able to fix it by changing the admin email address on the settings page; you might want to give that a try as well (assuming you're still looking to use SMTP rather then regular php mail).

I'll try your recomendation at soon. Thank you Matt.

I found the problem. Some tables in MySQL DB was "latin1_swedish_ci" charset. Check the original DB before import in phpMyAdmin.