Welcome Guest, Not a member yet? Register   Sign In
Extra characters coming in email
#1

[eluser]Computerzworld[/eluser]
Hello,
I have used CI email class for sending email. But when the mail comes it inserts character '=' at random places. I have created template for generating email body. Here is my email controller function.
Code:
function subscriptionMail($username,$email)
    {
        $this->load->library('parser');
        
        $config['protocol'] = 'mail';
        $config['mailtype'] = 'html';
        $this->load->library('email');
        $this->email->initialize($config);
        $this->email->from('[email protected]', 'Administrator');
        $this->email->to($email);
        
        $this->email->subject('TV Schedule Subscription');
        
        $body ="<table>";
        $body .="<tr><td>Hello ".$username.",</td></tr>";
        $body .="<tr><td>You recently requested a TV Schedule email subscription </td></tr>";
        $body .="<tr><td>Now onwards we will send email message if we will be having new TV Schedule content.</td></tr>";
        $body .="<tr><td>Cheers.</td></tr>";
        $body .="</table>";
        
        $mailBody = $body;
        
        $data = array(
        "BODY" => $mailBody,
        );
        
        $this->email->message($this->parser->parse('admin/mailTemplate',$data));
        $this->email->send();
        
        
    }

And here is the template file which is used for generating mail body.
Code:
&lt;html&gt;
&lt;head&gt;
&lt;style type="text/css"&gt;
body
{
font-family:Verdana;
font-size:12px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
<p align="left">
{BODY}
<br>
<br>
</p>
&lt;/body&gt;
&lt;/html&gt;

Please help me to find what is the problem behind this? Thanks in advance...


Messages In This Thread
Extra characters coming in email - by El Forum - 05-15-2008, 12:56 AM
Extra characters coming in email - by El Forum - 05-15-2008, 05:00 AM
Extra characters coming in email - by El Forum - 05-15-2008, 05:02 AM
Extra characters coming in email - by El Forum - 06-09-2008, 08:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB