Welcome Guest, Not a member yet? Register   Sign In
Strange Email problem
#1

[eluser]Computerzworld[/eluser]
Hello. I am having one problem while sending an email using CI mail class. Here is the code which I have used for sending mail.

Code:
<?php
class email extends Controller
{
    function email()
    {
        parent::Controller();
    }
    function index()
    {
        $this->load->library('email');
        $this->email->from('[email protected]', 'Administrator');
        $this->email->to('[email protected]');
        $this->email->cc('[email protected]');
        
        $this->email->subject('Email Test');
        $this->email->message('Testing the email class.');
        $this->email->send();
        
        echo $this->email->print_debugger();
    }
}    
?>

In this one if I do not add cc then the email won't reach!!!. And as soon as I add cc the mail goes!!!. I don't know what is the problem behind this. Please help me. Thank you.




Theme © iAndrew 2016 - Forum software by © MyBB