Welcome Guest, Not a member yet? Register   Sign In
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

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




Theme © iAndrew 2016 - Forum software by © MyBB