Setup:
- Using XAMPP + CodeIgniter
- I had my email.php configured as very standard for localhost
- $config['protocol'] = 'smtp';
- $config['smtp_host'] = 'localhost';
- $config['smtp_port'] = '25';
- $config['smtp_timeout']='10';
Issue:
- My PHP code kept hanging in "$this->email->send()" giving me a "waiting for localhost".
- In my php_error_log I had "Fatal error: Maximum execution time of 300 seconds exceeded in [stuff]\system\libraries\Email.php on line 1869
Resolution:
- Turns out that you need to specify the newlines on Windows
- Simply update your email.php to include:
- $config['newline'] = "\r\n";
- $config['crlf'] = "\r\n";
- Some additional details at the end of this thread http://ellislab.com/forums/viewthread/184596/
That's it.
Nifty
2 comments:
That was my issue, thanks!
This totally helped me. It works on Mac too.
Post a Comment