CodeIgniter Forums
How do I get email to work with Code Igniter and XAMPP? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: How do I get email to work with Code Igniter and XAMPP? (/showthread.php?tid=5363)



How do I get email to work with Code Igniter and XAMPP? - El Forum - 01-19-2008

[eluser]Jay Callicott[/eluser]
I've tried sendmail, mail, smtp -- I can't get anything to work on my local machine and I don't get errors from the email->print_debugger(); Anyone have any luck? I'm running on a windows box.


How do I get email to work with Code Igniter and XAMPP? - El Forum - 01-19-2008

[eluser]Michael Wales[/eluser]
XAMPP, not XAMPP Lite, comes with Mercury - but it's a monster. I prefer Hamster, it's pretty easy to setup and get configured.


How do I get email to work with Code Igniter and XAMPP? - El Forum - 01-19-2008

[eluser]Derek Allard[/eluser]
Try this Jay. Before you send out an email try configuring with your ISP's information.

Code:
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'smtp1.isp.ca';
$config['smtp_user'] = 'username';
$config['smtp_pass'] = 'password';
$config['smtp_port'] = '25';

This will obviously depend on if your host allows this, and a few other things... but if you can send email via Thunderbird, then you can send email via localhost, properly configured.


How do I get email to work with Code Igniter and XAMPP? - El Forum - 01-19-2008

[eluser]Jay Callicott[/eluser]
I am using thunderbird, I tried using gmail's smtp password but it didn't work. Does it matter who the from is? Like will it reject if I say I'm sending from "[email protected]"?


How do I get email to work with Code Igniter and XAMPP? - El Forum - 01-19-2008

[eluser]Jay Callicott[/eluser]
tried hamster too, nothing works, the print debugger looks fine though, I don't see what's going wrong.


How do I get email to work with Code Igniter and XAMPP? - El Forum - 01-19-2008

[eluser]Michael Wales[/eluser]
If you try using GMail you will have to set the weird ports they use.

Make a normal .php file and try sending a message using php's mail() function.