$this->email->send() returns nothing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: $this->email->send() returns nothing (/showthread.php?tid=54472) Pages:
1
2
|
$this->email->send() returns nothing - El Forum - 09-10-2012 [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? $this->email->send() returns nothing - El Forum - 09-10-2012 [eluser]TWP Marketing[/eluser] die() stops execution of the script. It can't return anything. $this->email->send() returns nothing - El Forum - 09-10-2012 [eluser]redcloud80[/eluser] Sure, but it should print at least TRUE or FALSE, according send() documentation. $this->email->send() returns nothing - El Forum - 09-10-2012 [eluser]TWP Marketing[/eluser] Try this: $result = $this->email->send(); die('The result is: '.$result); $this->email->send() returns nothing - El Forum - 09-10-2012 [eluser]redcloud80[/eluser] The output: "The result is: " $this->email->send() returns nothing - El Forum - 09-10-2012 [eluser]CroNiX[/eluser] Code: die($this->email->print_debugger()); $this->email->send() returns nothing - El Forum - 09-10-2012 [eluser]redcloud80[/eluser] An empty pre... Code: <pre> $this->email->send() returns nothing - El Forum - 09-10-2012 [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... $this->email->send() returns nothing - El Forum - 09-10-2012 [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? $this->email->send() returns nothing - El Forum - 09-10-2012 [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); |