Problem with sending email on SMTP |
Hi,
I use an OVH e-mail and the following configuration: email.php PHP Code: <?php When I need to send an email use this part of code PHP Code: $this->load->library('email'); The error that is returned to me is: Code: 220-ssl0.ovh.net player773 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
If your running on a local host then you need to set those in your php.ini file.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
I do not use OVH, but I had some problems with SSL.
If you use a Self Signed Certificate, CodeIgniter do not connect. Then you will need some hacks or some external library, https://github.com/ivantcholakov/codeigniter-phpmailer is a good choice. Also I have worked on an IMAP Library in https://github.com/natanfelles/codeigniter-imap. Is not the correct SMTP Host the mail.ovh.net?
The new host is ssl0.ovh.net
And the port. 587 is without ssl. My cms work perfectly in some server with ovh mail. But in this I have this error... it's strange.
(05-27-2017, 03:10 PM)StratoKyke Wrote: The new host is ssl0.ovh.net Have you tried to connect with the same credential from another system? Or, I had issues with the $config['new_line'] and just changing it I can solve.
Sorry for do not explain the last reply.
This is an example that is working for me on Hostinger: PHP Code: $config['protocol'] = 'smtp';
Uhmm I tried something like this, but nothing.
Tomorrow I will see some tests. If anyone has encountered a similar problem, let me know. |
Welcome Guest, Not a member yet? Register Sign In |