So the code:
$this->load->library('email');
$this->email->from('mysite@mysite.com', 'mysite');
$this->email->to($email);
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
I can’t understand why there is no errors when I send an email, but when I check my email box, there is no emails, so it looks like the email don’t reaches his destination, I am using CodeIgniter, maybe i need to add some other settings to fix this?? please help!!
ps: I have also used the native mail() function, anyway the email doesn’t comes, I was checking it in gmail
Your message has been successfully sent using the following protocol: mail
From: "mysite"
Return-Path:
Reply-To: "mysite@mysite.kg"
X-Sender: mysite@mysite.kg
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <501f4f33580d5@mysite.kg>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Email_Test?=
Testing the email class.
is there something wrong?
Are you using this on a localhost server, or on a production server? If you are using your own installation of Apache, PHP and MySQL (such as manual installation, WAMP, XAMPP, MAMP, etc.), then you may not have a mail server installed on your localhost machine for sending mail.
Try the following:
If this does not work, then most likely you do not have a mail server installed on your server.