Mailing content, getting unwanted characters |
[eluser]grezly[/eluser]
I'm trying to create a mailinglist (small one). But if i'm sending email i get the following characters in my email: "00" en "3D" Code: <div class=3D"block"> or Code: link href=3D"testing.com" rel= I'm getting the content with Code: $content = file_get_contents($data['url'].$newsbrief_url.$id); For the loop to email i'm using the following Code: foreach($users as $user) The config files that i use are Code: $config['mailtype'] = 'html'; So when i'm getting the html-mail in my mailbox it will quit opening until the "00" character (00-byte?).
[eluser]eldiablo[/eluser]
Same thing here running Windows Wamp any solutions
[eluser]aidehua[/eluser]
Were you on localhost? I was, and had this problem. Here's how I fixed it See http://ellislab.com/forums/viewthread/69463/#818990
[eluser]chamil sanjeewa[/eluser]
this code is working fine $this->load->library('email'); $this->load->library('parser'); $this->email->clear(); $config['mailtype'] = "html"; $this->email->initialize($config); $this->email->set_newline("\r\n"); $this->email->from('[email protected]', 'Website'); $list = array('[email protected]', '[email protected]'); $this->email->to($list); $data = array(); $htmlMessage = $this->parser->parse('messages/email', $data, true); $this->email->subject('This is an email test'); $this->email->message($htmlMessage); if ($this->email->send()) { echo 'Your email was sent, thanks chamil.'; } else { show_error($this->email->print_debugger()); } |
Welcome Guest, Not a member yet? Register Sign In |