![]() |
Mailing content, getting unwanted characters - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Mailing content, getting unwanted characters (/showthread.php?tid=11098) |
Mailing content, getting unwanted characters - El Forum - 08-26-2008 [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?). Mailing content, getting unwanted characters - El Forum - 10-15-2008 [eluser]eldiablo[/eluser] i'm getting the same thing any solutions? Mailing content, getting unwanted characters - El Forum - 03-23-2009 [eluser]eldiablo[/eluser] Same thing here running Windows Wamp any solutions Mailing content, getting unwanted characters - El Forum - 11-01-2010 [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 Mailing content, getting unwanted characters - El Forum - 02-23-2011 [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()); } |