Welcome Guest, Not a member yet? Register   Sign In
using CI_Email: Empty message body at Thunder Bird and message dose not apear at gmail.com
#1

[eluser]urrus[/eluser]
Hi, when I'm using standard CI_Email class I have two problems:
1) There is no message body when message open via Mozzila Thunderbird (screenshot http://screencast.com/t/tIEitgPb8EtD )
2) Message send by CI_Email dose not appear at the gmail.com, while email send via pure php mail functions dose (http://screencast.com/t/2IN9UYbiujgh).

Here is the code for repeat the bug:
Code:
function represent_error_at_the_ci_email(){
        $subject = $this->config->item('website_name', 'cron_controller').": Test CI_EMAIL";
        $subject1 = $this->config->item('website_name', 'cron_controller').": Test PURE HTML";
        $to = $this->config->item('webmaster_email', 'cron_controller');
        $from = $this->config->item('webmaster_email', 'cron_controller');
        $message = "the test text";
        
        $this->email->clear();
        $this->email->to($to);
        $this->email->subject($subject);
        $this->email->message($message);
        $this->email->from($from);
        $this->email->send();
        
        mail($to,$subject1,$message);
        
        echo "Send email to $to by CI_email lib and pure HTML. <br/>";
    }

The CI version is 1.7.2. (There is huge project on it)
email config is:
Code:
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = '\r\n';

Please, help to settle the question (maybe some setting at the config). The same story when using $this->email->set_alt_message. I've tested 100 times.




Theme © iAndrew 2016 - Forum software by © MyBB