send emails with the local protocol smtp |
Hi,
I'm new to codeigniter. I try to create a registration system. I am trying to follow this registration system. Everything works fine except sending emails. I check my mailbox, any mail exists. here is the file email.php under application/config PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); And here is my controller signup: PHP Code: if($this->form_validation->run()) PHP Code: [mail function] (01-10-2016, 07:12 AM)WebAddict Wrote: Hi, Setting up email on a development environment can be tricky if you're not on a real server (has qualified domain name). I'm assuming you are using a development environment because you are using WAMP, and real servers don't use WAMP. You might look at using FakeSMTP, or running all of your emails through a queue. The queue is ideal, because then you get to see the emails, attachments, etc. Unfortunately, you would probably have to create the queue yourself, as I am not aware that there is a FOSS option.
I solved the issue. I changed email.php
PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); here is php.ini PHP Code: [mail function] I changed the Gmail Account Setting "Allow less secure applications" to activated. |
Welcome Guest, Not a member yet? Register Sign In |