HTML e-mails not sending in HTML

I haven't done much research on this, I searched the forums and found no similar problems. I wanted to ask in hopes that someone here has seen this before, or could give me a quick solution rather than me spending time testing/troubleshooting.

I've created an email.php file in the config and added the following line:
$config['mailtype'] = 'HTML';

I then set up my mail script in the controller:
$this->email->from('[email protected]', 'Notification');
$data['email_error'] = $this->email->print_debugger();

The e-mails are going out successfully, with all the content, however the e-mail I receive is in text and shows the HTML code.

Strangely, I also tried converting it back to text and entering "\n" for line breaks, and the "n"'s show up in the e-mail, however the backslashes disappear.

Any ideas as to what might be going on here? Possibly a missing config somewhere or maybe even an issue with the mail server?

Any help is greatly appreciated.

Thanks! Smile

You could try using a carriage return "\r\n";
$config['newline'] = '\r\n';

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.