Why Is Part Of The Html Email Appearing As Text In Email Client?
I am trying to send HTML emails with Codeigniter's email class. This is how I am doing it: $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://sm
Solution 1:
As a summary of our conversation in the question's comments, the problem appears to be the content of the $html
variable. The variable contains entity encoded HTML. Running it through html_entity_decode
solved the problem.
Solution 2:
HTML code not rendered seems to be the header of your template. Maybe Gmail will display only the code found inside the tag body
, since Gmail is a web application, so it's displayed in a webpage already containing a header and a body (<html><head><body>
).
Post a Comment for "Why Is Part Of The Html Email Appearing As Text In Email Client?"