Welcome Guest, Not a member yet? Register   Sign In
Problem with sending email on SMTP
#1

(This post was last modified: 05-27-2017, 07:06 AM by StratoKyke.)

Hi,
I use an  OVH e-mail and the following configuration:

email.php
PHP Code:
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'SSL0.OVH.NET';
$config['smtp_port'] = '587';
$config['smtp_user'] = 'email';
$config['smtp_pass'] = 'pass';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$config['newline'] = "\r\n";
$config['send_multipart'] = FALSE

When I need to send an email use this part of code

PHP Code:
$this->load->library('email');
            
$this->email->from($admin$name);
            
$this->email->to($email);
            
$this->email->subject('text');
            
$this->email->message('text');
            
$this->email->send(); 

The error that is returned to me is:

Code:
220-ssl0.ovh.net player773
hello: 220 ssl0.ovh.net player773
The following SMTP error was encountered: 220 ssl0.ovh.net player773
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Sat, 27 May 2017 15:10:51 +0200
From: "Email - email" <email>
Return-Path: <email>
To: email2
Subject: =?UTF-8?Q?test?=
Reply-To: "email" <email>
X-Sender: email
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <59297adbaef73@email>
Mime-Version: 1.0


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

test


I can not figure out what the problem may be.

Emails through ovh from another cms go quietly. Only codeigniter from this error.


EDIT: Codeigniter V.3.0.4

EDIT2: I updated codeigniter to V .3.1.4 and I always have the same problem
Reply


Messages In This Thread
Problem with sending email on SMTP - by StratoKyke - 05-27-2017, 06:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB