I know that this is already multiple answered here, but all these answers did not helped me with my problem. Because it is the simpliest way for testing, I use the mail protocol, and work on my local xampp machine. Here is my relevant code:
<?php
$this->load->library('email');
$this->email->initialize(array(
'mailtype' => 'html',
'validate' => TRUE
);
$this->email->from($this->config->item('[email protected]', 'Test');
$this->email->to($email);
$this->email->subject('ServerManager Registration');
$this->email->message($mail_content);
if ($this->email->send()) {
// This becomes triggered when sending
}
?>
The variables $mail_content and $email are correctly spelled and working.
I enabled mail() logging in my xampp environment, so I am able to show you the log triggered:
mail() on [C:\xampp\htdocs\core\system\libraries\Email.php:1553]: To: ***@live.de -- Headers: User-Agent: CodeIgniter Date: Thu, 13 Jun 2013 18:14:46 +0200 From: "ServerManager" <[email protected]> Return-Path: <[email protected]> Reply-To: "[email protected]" <[email protected]> X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_51b9eff6ab7c2"
echo $this->email->print_debugger();
to check for errors. – Bad Wolf Jun 13 at 17:53