Welcome Guest, Not a member yet? Register   Sign In
Email class bug - HTML problem [SOLVED]
#1

[eluser]dootzky[/eluser]
Hi guys, I've been using CI for over a year now, and I'm loving it.

Here's where the problem is:

- I have a newsletter to send to bunch of people
- Email is working, and I'm sending HTML rendered file (all with tags <HTML><HEAD><TITLE>...<BODY></BODY></HTML>)
- the problem is that, in some email clients or services the HTML is displayed just fine. in others - it doesn't show up right.

I'm attaching 3 pictures here. First is successfull email, which I'm viewing in my own account in Thunderbird. Second is Gmail, which is not displaying anything right, and the third is Yahoo, which hides entire email.

Can anyone help me out here?
Here's the code I'm using to send emails, it's pretty basic, by-the-book example:

Code:
$this->load->library('email');
        $this->load->model('m_newsletter');
        
        $next_buffer = $this->m_newsletter->read_newsletter_buffer();
        
        foreach($next_buffer as $mail) {
            
            // send email
            $this->email->clear(true);
            
            $this->email->from('[email protected]', 'MY WEB SITE');
            $this->email->subject($mail['subject']);
            $this->email->set_mailtype('html');
            $this->email->message($mail['mail_body']);
            $this->email->to($mail['email']);
            $this->email->set_alt_message('You need HTML support, sorry.');
            
            $this->email->send();
            
            // delete this user from newsletter-buffer!
            $this->m_newsletter->remove_from_buffer($mail['id']);
        }


and here are the 3 photos I was talking about:

Thunderbird:
[Image: thunderbird.png]

Gmail:
[Image: gmail.png]

Yahoo:
[Image: yahoo.png]


Thanks a lot for your time.
I've read almost anything on the forums related to Gmail or HTML email problems, but couldn't find the answer to this problem of mine.

Hope the solution for this will help somebody else, and that we will improve CI even further! Smile
Cheers,
dootzky


Messages In This Thread
Email class bug - HTML problem [SOLVED] - by El Forum - 01-07-2009, 06:19 AM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-08-2009, 04:38 AM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-08-2009, 07:07 AM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-08-2009, 09:48 AM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-10-2009, 08:34 AM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-15-2009, 06:28 AM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-15-2009, 06:57 AM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-15-2009, 03:30 PM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-15-2009, 03:44 PM
Email class bug - HTML problem [SOLVED] - by El Forum - 01-17-2009, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB