Welcome Guest, Not a member yet? Register   Sign In
Blank page for Email test
#4

[eluser]webnology[/eluser]
Hi Bobbafoley,

thx for helping. I've added the rule, but still no results. Empty, white, blank page. No mail is sent. No errors.

Thsi is my full contrller, maybe you see sth wrong?

Code:
<?php

class Cron extends CI_Controller {

    //Constructor
    function __construct()
    {
        parent::__construct();
        
        $this->load->model('m_customers');
        $this->load->model('m_settings');
        $this->load->library('email');
    }
    
    function index() { }
    
    function sendTestMail() {

        $config['protocol']  = 'smtp';
        $config['smtp_host'] = 'host';
        $config['smtp_user'] = 'user';
        $config['smtp_pass'] = 'pwd';
    
        $this->email->initialize($config);

        $this->email->from('[email protected]', 'Sender');
        $this->email->to('[email protected]');
        $this->email->subject('Subject');
        $this->email->message('Test');
        $this->email->send();
        
        echo $this->email->print_debugger();  
    }
}


Messages In This Thread
Blank page for Email test - by El Forum - 07-26-2011, 05:42 AM
Blank page for Email test - by El Forum - 07-26-2011, 09:41 AM
Blank page for Email test - by El Forum - 07-26-2011, 12:00 PM
Blank page for Email test - by El Forum - 07-27-2011, 03:19 AM
Blank page for Email test - by El Forum - 07-27-2011, 04:12 AM
Blank page for Email test - by El Forum - 07-27-2011, 05:52 AM
Blank page for Email test - by El Forum - 07-27-2011, 02:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB