How to change the mail of salesforce org

To change the email address of a Salesforce org, you'll need to update the Email field in the Organization object. Here are the steps:

Method 1: Using the Salesforce UI

  1. Log in to your Salesforce org as a System Administrator.
  2. Click on the gear icon () in the top right corner and select Setup.
  3. In the Quick Find box, type Organization and select Organization from the dropdown list.
  4. Click on the Edit button next to the organization name.
  5. Scroll down to the Contact Information section.
  6. Update the Email field with the new email address.
  7. Click Save to save the changes.

Method 2: Using the Salesforce API

  1. Use the Salesforce API to update the Email field in the Organization object. You can use the update method of the Organization object.
  2. Use the following API request:
    PATCH https://yourdomain.my.salesforce.com/services/data/v43.0/sobjects/Organization/{id}
    {
    "Email": "[email protected]"
    }

    Replace {id} with the ID of your Salesforce org.

Method 3: Using the Salesforce CLI

  1. Install the Salesforce CLI on your machine.
  2. Run the following command:
    sfdx force:org:update --email [email protected]

    Replace [email protected] with the new email address.

Important Notes:

Before making any changes, make sure to test the new email address to ensure that it's working correctly and that all automated emails are being sent to the new address.