![]() |
How to send email via Codeigniter? I'm using NameCheap's Open-Xchange server.. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: How to send email via Codeigniter? I'm using NameCheap's Open-Xchange server.. (/showthread.php?tid=57807) |
How to send email via Codeigniter? I'm using NameCheap's Open-Xchange server.. - El Forum - 04-12-2013 [eluser]Unknown[/eluser] Hello, I want to send an email if the user forgot his password. But it is not sending using my code: Code: function _send_email($type, $email, &$data) What else do I need to set up to make this work? How to send email via Codeigniter? I'm using NameCheap's Open-Xchange server.. - El Forum - 04-15-2013 [eluser]XMadMax[/eluser] Hey alcatraz, you must to define email.php in the config file, with smtp protocolo, port user and password used to connect your remote mail server. http://ellislab.com/codeigniter/user-guide/libraries/email.html Example of email.php file ussing google account: $config['protocol'] = 'smtp'; $config['smtp_host'] = 'ssl://smtp.googlemail.com'; $config['smtp_port'] = '465'; $config['smtp_timeout'] = '10'; $config['smtp_user'] = '[email protected]'; $config['smtp_pass'] = 'mygooglepassword'; |