Welcome Guest, Not a member yet? Register   Sign In
HTML email strips CSS
#1

[eluser]goodbytes[/eluser]
I'm trying to send an html email with code igniter's email class and have downloaded a simple mailchimp template for this. Sending it from mailchimp arrives just fine in gmail, but when sending the same from code igniter, it strips all the CSS.

I'm sending as follows:
Code:
$config['charset'] = 'utf-8';
     $config['mailtype'] = "html";
     $config['send_multipart'] = false;
     $this->load->library('email');
     $this->email->initialize($config);

$message = $this->load->view("user/email", $emaildata, true);
$this->email->subject($subject);
     $this->email->message($message);
     $this->email->to("");
     $this->email->bcc($emails_to);
     $this->email->send();

any ideas are welcome! Thanks for helping out!

The email arrives, but with CSS being gone completely in gmail.
PS: loading the same "user/email" view in the browser works perfect.


Messages In This Thread
HTML email strips CSS - by El Forum - 06-19-2012, 10:17 AM
HTML email strips CSS - by El Forum - 06-19-2012, 11:39 AM
HTML email strips CSS - by El Forum - 06-19-2012, 12:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB