Cakephp Activating Email Sending Slowly

I have a simple email sender to activate a user account. Depending on which email address I use, I get significantly different response times: email at the university - 1 minute, Gmail - 3-4 hours, Yahoo - 1 or 2 days - which seems strange. Has anyone else seen this phenomenon?

EDIT:

There were not many answers (even for generosity), but I will try to explain my problem more clearly.

This is probably not greylsting - if I'm so simple:

php mail ($to, $subject, $body) // this delivers instantly.

My cakephp code:

    function __sendActivationEmail($id) {
    $User = $this->User->read ( null, $id );
    $this->set ( 'suffix_url', $User ['User'] ['id'] . '/' . $this->User->getActivationHash () );
    $this->set ( 'username', $User ['User'] ['username'] );
    $this->Email->to = $User ['User'] ['email'];
    $this->Email->subject = 'Test.com - ' . __ ( 'please confirm your email address', true );
    $this->Email->from = 'noreply@test.com';
    $this->Email->template = 'user_confirm';
    $this->Email->sendAs = 'text';
    $this->Email->delivery = 'mail';
    $this->Email->send ();
}

13 (, ) 5-6 ( , ). , ( , gmail, ).

?

+3
4

, , , . 3-4 Greylisting, 1-2 . ? ?

() ? " :...." , 1-2 .

+1

, PHPMailer , "Mail"...

SMTP-!:)

0

PHP .

linux, , , . mail myemail@me.com

, . , php cakePHP.

, , , , SPF . , , -, . .

, , , (, ). , - , . gmail , .

Do all this without touching PHP, if everything goes well, then set up a basic php script to make a basic email that doesn't use CakePHP, if that works well, then you know its CakePHP, etc., but I doubt it.

0
source

So, after further digging, I realized that this is the problem of our server. We use Slicehost, and it just so happens that the ips range that was blacklisted included our own ip. We got our name from the list and we will be happy.

0
source

Source: https://habr.com/ru/post/1728806/


All Articles