CodeIgniter Forums
Dont sending email - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Dont sending email (/thread-55168.html)



Dont sending email - El Forum - 10-12-2012

[eluser]oliwin[/eluser]
Hello! I have such code function sending email messages:

Code:
function SendEmail($options) {
$config['protocol'] = 'mail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$config['priority'] = 1;
$config['mailtype']='html';
$config['validate']= TRUE;

  
  $this->load->library('email');
  $this->email->initialize($config);
  $this->email->from('[email protected]');
  $this->email->to('[email protected]');
  $this->email->subject('Subject test');
  $this->email->message($options['message']);  
  $this->email->send();
  
}

At debug mode i get message that send was successful but email i dont get
Can you help me? What is maybe?


Dont sending email - El Forum - 10-13-2012

[eluser]oliwin[/eluser]
I found the solution thx


Dont sending email - El Forum - 10-13-2012

[eluser]TWP Marketing[/eluser]
If the solution was related to CI's code, please tell us what you did to solve the problem. It may help later readers of the forum...