• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not sending email?

Hi guys

Just wondering the reason of this, not sending email?

In my constractor i have this codes like this below,
class Site extends Controller

  function Site()

        $config = Array(
                'protocol' => 'mail',
                'smtp_host' => 'mail.mysite.org',
                'smtp_port' => 25,
                'smtp_user' => 'contact@mysite.org',
                'smtp_pass' => 'asdf1234',
                'mailtype' => 'html'
        $this->load->library('email', $config);

and in my send email method i have this below,
function email_test()
    $this->email->from('contact@mysite.org', 'Admin');

    $this->email->subject('Activate your account - email test');
    $this->email->message('<b>Please click the link below to activate your account at samplesite.com</b><br>user: <br>pass: <br><br><a href="http://www.mysite.org">click here</a>');

I don't understand what is causing the problem.
Thanks in advanced.

hi user this $this->email->print_debugger() function to debug your email you will find where the error is. put it after send

I believe your email is being sent, but as you are using yahoo, it may be going in spam. Have you check that? Though you should try print_debugger() as suggested above.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.