• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the smtp server Codeigniter uses?

#1
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?
Reply

#2
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
Reply

#3
(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.
https://www.codeigniter.com/user_guide/l...references

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?
Reply

#4
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
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.