Привет, ребята, я пытаюсь создать пароль для сброса для этого форума im develop ... В любом случае я следил за множеством руководств и пробовал много версий того, что вы увидите, и это тот, у которого наименьшие ошибки. .. Хотя я не могу понять, что случилось, я мог бы воспользоваться вашей помощью, пожалуйста.Codeigniter отправить smtp gmail
class CI_Email { //in library email.php
var $useragent = "CodeIgniter";
var $mailpath = "/usr/sbin/msmtp"; // Sendmail path
var $protocol = "smtp"; // mail/sendmail/smtp
var $smtp_host = "smtp.googlemail.com"; // SMTP Server.
var $smtp_user = "[email protected]"; // SMTP Username
var $smtp_pass = "mypass"; // SMTP Password
var $smtp_port = "465"; // SMTP Port
var $smtp_timeout = 5; // SMTP Timeout in seconds
var $smtp_crypto = ""; // SMTP Encryption. Can be null, tls or ssl.
var $mailtype = "html"; // text/html Defines email formatting
var $charset = "utf-8"; // Default char set: iso-8859-1 or us-ascii
И это результат:
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. Content-Type: multipart/alternative; boundary="B_ALT_51cd96f2daf24"
This is a multi-part message in MIME format. Your email application may not support this format.
--B_ALT_51cd96f2daf24 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit
My text here...
--B_ALT_51cd96f2daf24 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Я также попробовал много другой конфигурации я нашел в Интернете, таких как:
var $mailpath = "/usr/sbin/sendmail"; // Sendmail path
var $smtp_host = "ssl://smtp.googlemail.com"; // SMTP Server.
или:
var $mailpath = "/usr/sbin/sendmail"; // Sendmail path
var $smtp_host = "ssl://smtp.gmail.com"; // SMTP Server.
С SSL протокол в smtp_host я получал бесконечный экран бесчисленных ошибок.
Какой SMTP-порт вы используете? –
Я использую порт 465, как было предложено руководствами, которые я нашел ... im довольно новый в этих вещах, есть ли еще файл, который мне нужно настроить порт? – Dennis
вы можете выполнить для этих двух: var $ smtp_host = "ssl: //smtp.googlemail.com"; // SMTP-сервер var $ smtp_port = "25"; // Порт SMTP –