HTML Email not displaying as HTML but as text |
[eluser]Dr. Seuss[/eluser]
Certainly, my apologies. I am using CI 1.7.1. Here is the complete function: Code: function _authmail($eml, $strSubject,$strMessage ){ ...and the config file, "Email.php": Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); And the resulting email: Quote: Thu, 14 May 2009 11:44:45 -0700 (PDT) I note that the line "Content-Type: text/plain; charset=utf-8" and I don't know if that is the problem or not (i.e. my '$config['email']['mailtype'] = 'html'" is not having intended effect). Thanks for the scrutiny.
[eluser]TheFuzzy0ne[/eluser]
Sorry if I'm missing something obvious here, but why the: Code: $config['email']['mailtype'] = 'html'; and not Code: $config['mailtype'] = 'html'; as written in the user guide?
[eluser]Dr. Seuss[/eluser]
Duh. That fixed it. Thank you ever so much. I think I copied-and-pasted those lines from some example long ago and just assumed that they MUST be correct--and never bothered to compare against the user guide. Thanks again. |
Welcome Guest, Not a member yet? Register Sign In |