• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email Class takes hours to send email


So we are using the email class to send emails such as verification emails, welcome emails, etc.

The problem is, the verification email takes too long to get received by our users- some users have reported waiting 4 hours to get it while others it took them an hour. I really don't know what could be causing this, majority of our vars are default.

Heres the emailing code;
$email = $this->User->get_email_by_hash($hash);
                $config['mailtype'] = 'html';
                $this->email->from('reply@website.com', 'Website');
                $this->email->subject('Welcome to Website');
                $this->email->message('HTML EMAIL HERE');    

Could this be a host issue? We are hosted with MediaTemple.

Also we have tested it ourselves locally and it takes seconds, but when on our server sometimes it takes an hour.

[eluser]Eric Barnes[/eluser]
It could be the domain, hosting, or mx records. Sometimes with shared hosting you can be on the same ip as a spammer. For DNS you can try something like: http://www.mxtoolbox.com/

I would probably contact your host though as this is outside of the framework itself.

Thanks for the reply.

I am using a virtual private server so it is not shared. I have contacted my host and awaiting reply.

I used the tool you posted, everything is ok, except when i did a blacklist check;

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

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