Welcome Guest, Not a member yet? Register   Sign In
mailing list problem
#3

[eluser]mohamed eid[/eluser]
no this is not the problem
if i used one email to send it wok correctly
but when i called the mail from database it not sended
the problem is from this part
Code:
$emails=$this->useremail_model->getall_email();
           foreach($emails as $email)
           {
                 $this->email->clear();
                 $this->email->to($email->useremail);
                 $usubject=$this->input->post('subject');
                 $this->email->from('[email protected]');
                 $data['usubject']=$this->input->post('subject');
                $data['umessage']=$this->input->post('content');
                $msg=$this->load->view('admin/sended',$data,true);
                $this->email->message($msg);
               echo $email->useremail;
           }

the problem in fetch the emails from database an buting them in
Code:
$this->email->to('$email->usermail')


Messages In This Thread
mailing list problem - by El Forum - 02-04-2012, 07:49 PM
mailing list problem - by El Forum - 02-04-2012, 08:39 PM
mailing list problem - by El Forum - 02-05-2012, 10:10 AM
mailing list problem - by El Forum - 02-05-2012, 10:57 AM
mailing list problem - by El Forum - 02-05-2012, 11:04 AM
mailing list problem - by El Forum - 02-05-2012, 11:10 AM
mailing list problem - by El Forum - 02-05-2012, 11:17 AM
mailing list problem - by El Forum - 02-05-2012, 11:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB