Password reset not working, form submission not working; Email not working - 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: Password reset not working, form submission not working; Email not working (/showthread.php?tid=72441) |
Password reset not working, form submission not working; Email not working - seneca23 - 12-19-2018 Hi, Newbie here. Need help on the email configuration to get it working; the following email config is not working. $config['useragent'] = 'CodeIgniter'; $config['protocol'] = 'smtp'; $config['mailpath'] = '/usr/sbin/sendmail'; $config['smtp_host'] = 'mydomainnamehost.com'; $config['smtp_user'] = 'myemail.com'; $config['smtp_pass'] = 'mypassword'; $config['smtp_port'] = '587'; $config['smtp_crypto'] = 'tls'; $config['mailtype'] = 'html'; // $config['validate'] = TRUE; // $config['priority'] = 3; // $config['crlf'] = "\r\n"; $config['newline'] = "\r\n"; $config['charset'] = "utf-8"; Please advise how I can get this working. Thank you much RE: Password reset not working, form submission not working; Email not working - Pertti - 12-20-2018 Hey, When sending email, check the debug, it usually tells you why it couldn't send email: PHP Code: $this->email->send(false); // false attribute is important, otherwise debug data will be cleared after send action This should point you to right direction why it fails. RE: Password reset not working, form submission not working; Email not working - demyr - 12-31-2018 yes, debugging will help. Also, you can talk to you hosting provider or check your Cpanel for email settings. For example, Code: $config['smtp_host'] = 'mydomainnamehost.com'; must be Code: $config['smtp_host'] = 'mail.mywebsite.com'; for the providers I work with. |