Welcome Guest, Not a member yet? Register   Sign In
localhost Email Class and Protocol mail
#1

[eluser]yannyannyann[/eluser]
Hi,

everything is almost in the title : I try to send email from my localhost with the Email class.


Code:
<?php
$config['protocol'] = 'mail';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$config['newline'] = "\r\n";
$config['crlf'] = "\r\n";
?>

The debugger shows me that error :

Code:
Unable to send email using PHP mail().
Your server might not be configured to send mail using this method.


How could I solve that ?

thanks in advance !
#2

[eluser]yannyannyann[/eluser]
I have just tried a dummy email send out using mail() :

Code:
mail("[email protected]","my subject","my message","from: my name <[email protected]>");

and it worked.... so why not from the EMAIL CodeIgniter Class ?




Theme © iAndrew 2016 - Forum software by © MyBB