Welcome Guest, Not a member yet? Register   Sign In
email sending issue
#4

(This post was last modified: 08-19-2016, 09:07 PM by greenarrow.)

(08-19-2016, 12:45 PM)PaulD Wrote: ?

You do not need to echo it. This should work:

PHP Code:
$this->email->to($data['records']['email']); 

However, if you are getting errors what error are you getting? You probably have a problem with your array. Are you sure it is a valid reference to a valid array?

this is my model for this.

PHP Code:
$query $this->db->select('*')
 
     ->from('users')
 
     ->where('name',$this->input->post('service_advisor'))
 
     ->get();


if(
$query->num_rows() > 0) {

 
    foreach ($query->result() as $row){
$data[] = $row;

}

}
return 
$data 

this is ok right? it didn't show any error message but email is not sending.
Reply


Messages In This Thread
email sending issue - by greenarrow - 08-19-2016, 11:36 AM
RE: email sending issue - by PaulD - 08-19-2016, 12:45 PM
RE: email sending issue - by greenarrow - 08-19-2016, 09:05 PM
RE: email sending issue - by Wouter60 - 08-19-2016, 12:48 PM
RE: email sending issue - by PaulD - 08-19-2016, 09:39 PM
RE: email sending issue - by greenarrow - 08-19-2016, 09:47 PM
RE: email sending issue - by PaulD - 08-19-2016, 10:00 PM
RE: email sending issue - by Wouter60 - 08-20-2016, 12:00 AM
RE: email sending issue - by InsiteFX - 08-20-2016, 03:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB