Welcome Guest, Not a member yet? Register   Sign In
Sending email taking long response using appserve
#1

[eluser]indigoblue[/eluser]
hi everyone…
I have been followed this tutorial :
http://net.tutsplus.com/articles/news/co...ent-326792.
but I’ve some trouble when tried to send an email, like at this tutorial.
When i try to refresh http://localhost/ci_day3/index.php/email/index, there are not error report, but it’s take a long time response… Sad and nothing was sent..
I used appserv as my webserver, and WIN 7..
This is my code :

‘smtp’,
‘smtp_host’ => ‘ssl://smtp.googlemail.com’,
‘smtp_port’ => 465,
‘smtp_user’ => ‘[email protected]’,
‘smtp_pass’ => ‘mypass’
);

$this->load->library(‘email’,$config);
$this->email->set_newline(‘\r\n’);

$this->email->from(‘[email protected]’,'myname’);
$this->email->to(‘[email protected]’);
$this->email->subject(‘This Is Email Test Bro’);
$this->email->message(‘Test’);

if($this->email->send()){
echo ‘Your Email Successfull Cuy..’;
}
else{
show_error($this->email->debugger);
}
}
}
?>

Anyone can help me? I've been try to search solution on the other thread in this forum, but It's still the same problem in my case.
Is this because webserver that I used??

I’m sorry if my english is so poor. hope you understand what I mean..
regard…
#2

[eluser]indigoblue[/eluser]
hi everyone...
now, I get the answer...
just change
Quote:$this->email->set_newline(‘\r\n’);
to
Quote:$this->email->set_newline("\r\n");
and it works... Smile Smile




Theme © iAndrew 2016 - Forum software by © MyBB