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

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

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
Marcus
Marcus Jan 11
OOOOOOHHHHH brother this is amazing! Exactly what I needed thanks very much!
Oxwall Germany Club
Topic was moved from General Questions.
Webster Molaudi
Thanks for the Tip
Marcus
Marcus Jan 12

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
Patricia Zorrilla Bcn
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.