How to disable cutomer mail verification in magento

To disable customer email verification in Magento, you can follow these steps:

Method 1: Disable email verification through Magento configuration

  1. Log in to your Magento admin panel.
  2. Go to Stores > Configuration > Customers > Options.
  3. Scroll down to the Customer Options section.
  4. Find the Email Verification option and set it to No.
  5. Save the configuration.

Method 2: Disable email verification through Magento code

  1. Log in to your Magento admin panel.
  2. Go to System > Advanced > Developer > Disable.
  3. In the Disable section, click on Add.
  4. In the Disable field, enter the following code: Mage_Customer_Model_Customer::verifyEmail
  5. Click Save.

Method 3: Disable email verification using a custom module

  1. Create a new module in your Magento installation (e.g., MyCompany_CustomerEmailVerification).
  2. In the etc/modules directory of your module, create a new file called MyCompany_CustomerEmailVerification.xml with the following content:
    <?xml version="1.0"?>
    <config>
     <modules>
         <MyCompany_CustomerEmailVerification>
             <active>true</active>
             <codePool>local</codePool>
         </MyCompany_CustomerEmailVerification>
     </modules>
    </config>
  3. In the Model directory of your module, create a new file called Customer.php with the following content:
    
    <?php

class MyCompany_CustomerEmailVerification_Model_Customer extends Mage_Customer_Model_Customer { public function verifyEmail($email) { // Disable email verification return true; } }

4. In the `etc/config.xml` file of your module, add the following code:
```xml
<?xml version="1.0"?>
<config>
    <global>
        <models>
            <customer>
                <class>MyCompany_CustomerEmailVerification_Model_Customer</class>
            </customer>
        </models>
    </global>
</config>
  1. Save the changes and refresh the Magento cache.

After disabling email verification, customers will no longer receive an email verification link when creating a new account or updating their email address.