CodeIgniter Forums

Full Version: How do I get email to work with Code Igniter and XAMPP?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[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.

El Forum

[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.

El Forum

[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]"?

El Forum

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

El Forum

[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.