$this->email->send() returns nothing |
[eluser]redcloud80[/eluser]
Why $this->email->send() returns nothing (blank html)? Code: public function __construct() This is my email.php config file Code: $config['protocol'] = 'smtp'; Any idea?
[eluser]TWP Marketing[/eluser]
die() stops execution of the script. It can't return anything.
[eluser]redcloud80[/eluser]
Sure, but it should print at least TRUE or FALSE, according send() documentation.
[eluser]TWP Marketing[/eluser]
Try this: $result = $this->email->send(); die('The result is: '.$result);
[eluser]CroNiX[/eluser]
[quote author="redcloud80" date="1347306335"]Sure, but it should print at least TRUE or FALSE, according send() documentation.[/quote] it does if you use var_dump($var), since it's a boolean and not a string it won't print "true/false" to the screen...
[eluser]redcloud80[/eluser]
[quote author="CroNiX" date="1347312562"][quote author="redcloud80" date="1347306335"]Sure, but it should print at least TRUE or FALSE, according send() documentation.[/quote] it does if you use var_dump($var), since it's a boolean and not a string it won't print "true/false" to the screen...[/quote] Correct. It returns boolean FALSE. Where I can find some log files about this?
[eluser]CroNiX[/eluser]
I don't see where you initialize your email with the $config. You only define the $config. Code: $this->email->initialize($config); |
Welcome Guest, Not a member yet? Register Sign In |