send email from HTML template |
[eluser]nahalem[/eluser]
Hello, I have a problem with sending emails via Codeigniter :-). On the bottom I give you whole code what I'm using. I receving blank emails when I'm using this: controller: Code: $config['charset']='utf-8'; emails/subscription VIEW template: Code: <html> I need send email with passing variables to the view and whant to send this template as a body message. THX
[eluser]InsiteFX[/eluser]
Look at your data array your missing the ); on the end of it.
[eluser]nahalem[/eluser]
nope, I change this array and stil nothing Code: $data = array(
[eluser]CroNiX[/eluser]
Try changing Code: $this->load->library('email',$config); Code: $this->load->library('email'); Also, try checking $msg before sending the email to make sure that got parsed correctly. Looking at your view, blog_entries looks like its supposed to be an array, but you are passing in a string. |
Welcome Guest, Not a member yet? Register Sign In |