We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Email verification suggestion slow! | Forum

Marcus
Marcus Jan 3 '19

Email verification should be sent right away after registration is complete and not put on hold till cron runs in many cases there could be a ton of emails on hold and depending on server email quota email verification could end up lost and user's wont get their verification emails.


You should make changes and send email right away don't wait for cron tasks.

OW-Ghost
OW-Ghost Jan 5 '19

Try this fix:


In the file "ow_core\mailer.php" Replace all this code:

public function send( BASE_CLASS_Mail $mail ) 

if ( $this->maliService->getTransfer() == BOL_MailService::TRANSFER_SMTP ) 

$this->maliService->addToQueue($mail); 

else

$this->maliService->send($mail); 



With this code:

public function send( BASE_CLASS_Mail $mail )
{
$this->maliService->send($mail);
}


it worked for me....

The Forum post is edited by OW-Ghost Jan 5 '19
Marcus
Marcus Jan 11 '19
OOOOOOHHHHH brother this is amazing! Exactly what I needed thanks very much!
Oxwall Germany Club
Oxwall Germany Jan 11 '19
Topic was moved from General Questions.
Webster Molaudi
Webster Molaudi Jan 11 '19
Thanks for the Tip
Marcus
Marcus Jan 12 '19

What do you think about mi fix??


public function send( BASE_CLASS_Mail $mail )
    {
        $user = BOL_UserService::getInstance()->findUserById(OW::getUser()->getId());
       
        if ( $this->maliService->getTransfer() == BOL_MailService::TRANSFER_SMTP )
        {
            if( (int) $user->emailVerify === 0 && OW::getConfig()->getValue('base', 'confirm_email'))
            {
            $this->maliService->send($mail);
            }
            else
            {
            $this->maliService->addToQueue($mail);
            }
        }
        else
        {
            $this->maliService->send($mail);   
        }
    }

The Forum post is edited by Marcus Jan 12 '19
Patricia Zorrilla Leader
Patricia Zorrilla Jan 12 '19
Sparkly. I would like a similar modification so that activity emails are NOT sent to members who DO NOT have a verified email, except for the verification email, of course.
Laszlo Agoston
Laszlo Agoston Dec 19 '20
Thanks, Marcus, it worked! I owe you a beer :)