Get value from the query and put on controller for sending MAIL |
[eluser]fnbhns[/eluser]
Dear All, First of all appologise for my english. I am new in codeigniter. I want to select email address each time 1 from DB table and want to sent mail in that mailing address. Looking for your help and support. This is my CONTROLLER : Code: public function index() { This is my MODEL bellow Code: public function sendReservationEmail($data,$templateName){ Quote:A PHP Error was encountered Even its showing that, the email address received from DB. Can not convert in STRING.I am trying my level best. but i think i need your help. I am highly expecting your support. Thank you so much in advance.
[eluser]Tpojka[/eluser]
Seems like you forgot $user_id as argument passed in index() method?
[eluser]fnbhns[/eluser]
Thank you for your quick reply. I did little mistake But the User_id is there. using these User_id i am picking the email address from the table. But when i am using $this->email->to($data['to_address1']); its showing a message that EMAIL address can not be converted as string. So the mail is not sending. If you have any idea please i got really tired ................!!
[eluser]InsiteFX[/eluser]
Code: ->row(); result and row are objects - result_array and row_array are associated arrays.
[eluser]fnbhns[/eluser]
Thank you all, my problem is been solved. Special thanks to Quote:InsiteFX. Your comments became so helpful. |
Welcome Guest, Not a member yet? Register Sign In |