Welcome Guest, Not a member yet? Register   Sign In
Send Email Issue
#1

[eluser]Unknown[/eluser]
Hello Experts,
I'm new in CI and I need some guidance in this issue. I'm trying to send an email:
Code:
$this->load->library('email');

$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';
$config['protocol'] = 'sendmail';
$this->email->initialize($config);

$this->email->from($broker_info->bc_email, $broker_info->bc_name);
$this->email->to($_POST['br_email']);
// Set the email message
$message  = $this->lang->line('msg_ln1');
$message .= $this->lang->line('msg_ln2').$_POST['br_lname'].", ".$_POST['br_fname']."\n";
$message .= "-------------------------------------------------\n\n";
$message .= $this->lang->line('msg_ln3');
$message .= anchor("http://realtoolpr.com");
$message .= "------------------------------------------------\n\n";
$message .= $this->lang->line('msg_ln4');
$message .= $broker_info->bc_name;
                            
$this->email->subject($this->lang->line('email_sbj_dr'));
$this->email->message($message);
                
$this->email->send();
echo $this->email->print_debugger();

With the print_debugger function I'm getting: Your message has been successfully sent using the following protocol: sendmail and the email body exactly the way I want it. But when I check my inbox and spam nothing is there, any idea of what I'm doing wrong. Please help I've spent a lot of hours looking for answers without luck. Thanks in advance!!!!




Theme © iAndrew 2016 - Forum software by © MyBB