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 = "adsf@adf.com";
$message= "Testing";

$this->email->from("asdf@ad.com", "name");
$this->email->to('abc@hotmail.com');

$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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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