sending email not working

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???

function testMailer()

$name = "test";
$email = "";
$message= "Testing";

$this->email->from("", "name");

echo $this->email->print_debugger();
echo 'Something went wrong...';


check your JUNK Box as well.

If you are running Windows, I use this tool for sending and checking emails.

Test Server Mail Tool


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.