Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Confirm email with out Welcome email

Hi! After registration i get Welcome email. How get confirm email?
Immediately, with out Welcome email?

Tagged:

Comments

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    There's that code in entrycontroller:

    if (C('Garden.Registration.SendConnectEmail', TRUE)) {
       try {
          $UserModel->SendWelcomeEmail($UserID, '', 'Connect', array('ProviderName' => $this->Form->GetFormValue('ProviderName', $this->Form->GetFormValue('Provider', 'Unknown'))));
    

    So I would try adding $Configuration['Garden']['Registration']['SendConnectEmail'] = FALSE; to /conf/config.php

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    If that doesn't work: there's the line public function SendWelcomeEmail($UserID, $Password, $RegisterType = 'Add', $AdditionalData = NULL) { in /applications/dashboard/models/class.usermodel.php.
    If you add return; after that line, there will never be any welcome mail at all. But all changes to the core files should be avoided. You'll lose that customizations on every update.

  • Options

    Line number 1075

    Before

                   try {
                       $this->UserModel->SendWelcomeEmail($AuthUserID, '', 'Register');
                   } 
                   catch (Exception $Ex) {
                   }
    

    After changes

               if (C('Garden.Registration.SendConnectEmail', TRUE)) {
                   try {
                       $this->UserModel->SendWelcomeEmail($AuthUserID, '', 'Register');
                   } 
                   catch (Exception $Ex) {
                   }
               }
               else {
                   try {
                       $this->UserModel->SendEmailConfirmationEmail($AuthUserID);
                   } 
                   catch (Exception $Ex) {
                   }
               }
    
Sign In or Register to comment.