![]() |
Problem with sending email on SMTP - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Problem with sending email on SMTP (/showthread.php?tid=68112) |
Problem with sending email on SMTP - StratoKyke - 05-27-2017 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 RE: Problem with sending email on SMTP - InsiteFX - 05-27-2017 If your running on a local host then you need to set those in your php.ini file. RE: Problem with sending email on SMTP - StratoKyke - 05-27-2017 (05-27-2017, 01:57 PM)InsiteFX Wrote: If your running on a local host then you need to set those in your php.ini file. No is a vps always on ovh. RE: Problem with sending email on SMTP - natanfelles - 05-27-2017 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? RE: Problem with sending email on SMTP - StratoKyke - 05-27-2017 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. RE: Problem with sending email on SMTP - natanfelles - 05-27-2017 (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. RE: Problem with sending email on SMTP - StratoKyke - 05-27-2017 What config do you use for newline settings? RE: Problem with sending email on SMTP - natanfelles - 05-27-2017 Sorry for do not explain the last reply. This is an example that is working for me on Hostinger: PHP Code: $config['protocol'] = 'smtp'; RE: Problem with sending email on SMTP - StratoKyke - 05-27-2017 Uhmm I tried something like this, but nothing. Tomorrow I will see some tests. If anyone has encountered a similar problem, let me know. |