Welcome Guest, Not a member yet? Register   Sign In
email->send() returns incorectly
#1

[eluser]Dan Bowling[/eluser]
I'm getting a bad return on my send() function of the email helper.
Code:
$alumni = $this->alumni_model->get_alumni_in_region_by_city($region, $city);
                
                    foreach ($alumni as $alumnus)
                    {
                        $this->email->clear();
                        
                        $this->email->from($this->session->userdata('user_email'), $this->session->userdata('user_name'));
                        $this->email->to($alumnus->alumni_email);
                        $this->email->subject($subject);
                        $this->email->message($message);    
                        echo "<li>$alumnus->alumni_email ($alumnus->alumni_city)...";
                        if($this->email->send()){
                            echo "<span class='good'>SENT</span></li>";
                        }else{
                            echo "<span class='bad'>FAILED</span></li>";
                        }
                    }

When that evaluates, the page outputs failed, even though I get the email.

I'm using XAMPP with a remote SMTP gateway.

Any ideas?


Messages In This Thread
email->send() returns incorectly - by El Forum - 09-09-2008, 04:45 PM
email->send() returns incorectly - by El Forum - 09-09-2008, 05:29 PM
email->send() returns incorectly - by El Forum - 09-09-2008, 06:05 PM
email->send() returns incorectly - by El Forum - 09-09-2008, 11:07 PM
email->send() returns incorectly - by El Forum - 09-10-2008, 12:44 PM
email->send() returns incorectly - by El Forum - 09-10-2008, 01:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB