Welcome Guest, Not a member yet? Register   Sign In
Email default protocol

The default for sending emails from CI 2.1.3 is 'mail'. I think I understand what 'sendmail' and 'smtp' do but what protocol does the default 'mail' use?

Sorry if this has been answered before but I couldn't find anything on search.

[eluser]Harold Villacorte[/eluser]
It looks to me like php's mail() function.

So what protocol does that use?

[eluser]Harold Villacorte[/eluser]
The CI mail protocol uses the PHP mail() function which uses sendmail.
The sendmail protocol uses sendmail directly.
The smtp protocol works the way PHPMailer does. It bypasses the server and your application acts like a mail client.

So mail and sendmail are essentially identical?

[eluser]Harold Villacorte[/eluser]
Mail uses mail() which is very simple. Sendmail uses popen() to run sendmail. One may work for you where the other does not or it might be that neither works. Smtp usually works for everyone.

Thanks so much for that info - I think it's smtp for me!

You need to setup your mail configuration in your php.ini file for sendmail and smtp.

Already done that and smtp is working OK.

Many thanks for your help

Theme © iAndrew 2016 - Forum software by © MyBB