Welcome Guest, Not a member yet? Register   Sign In
sending email not working
#1

[eluser]sudinem[/eluser]
I've use these codes to send email. But, when I run the code, it returns me the message "Something went wrong..."
But, when I change $config['protocol']='mail'. ...Then I get the message "your message has been sent". But, when I check my inbox, I didn't get any mails.

I've googled my problem but couldn't get any solution. Do you guyz have any solution???


Code:
function testMailer()
{
$config['protocol']='sendmail';
$this->load->library('email');
$this->email->initialize($config);

$name = "test";
$email = "[email protected]";
$message= "Testing";

$this->email->from("[email protected]", "name");
$this->email->to('[email protected]');

$this->email->subject('Subject');
$this->email->message($message);
if($this->email->send())
{
echo $this->email->print_debugger();
}
else
{
echo 'Something went wrong...';
}


}
#2

[eluser]Deveron[/eluser]
Hi,
check your JUNK Box as well.
#3

[eluser]InsiteFX[/eluser]
If you are running Windows, I use this tool for sending and checking emails.

Test Server Mail Tool

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB