01-17-2017, 09:17 PM
I don't have a smtp server on my machine, but Codeigniter allows me to send emails, how is that possible? Does Codeigniter comes with an smtp server?
What is the smtp server Codeigniter uses?
|
01-17-2017, 09:17 PM
I don't have a smtp server on my machine, but Codeigniter allows me to send emails, how is that possible? Does Codeigniter comes with an smtp server?
01-17-2017, 09:46 PM
Without any config it will use PHP mail function, check out below link for some setup instructions.
https://www.codeigniter.com/user_guide/l...references
01-17-2017, 10:18 PM
(01-17-2017, 09:46 PM)ragingTorch Wrote: Without any config it will use PHP mail function, check out below link for some setup instructions. Ok thanks! One more question, when I use php's mail function it requires me a smtp server but how come Codeigniter's usage of php's mail function doesn't?
01-17-2017, 11:35 PM
(This post was last modified: 01-17-2017, 11:36 PM by enlivenapp.)
PHP's mail function doesn't require SMTP, I think you might have a misconfiguration happening. If you're using CI's mail to try and use PHP's mail, make sure your config is set to use PHP's mail. See the link @ragingTouch posted.
specifically: PHP Code: $config['protocol'] = 'mail'; // not SMTP or Sendmail Here's PHP's doc on mail. http://php.net/manual/en/function.mail.php |