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
- Log in to your Salesforce org as a System Administrator.
- Click on the gear icon () in the top right corner and select Setup.
- In the Quick Find box, type
Organization
and select Organization from the dropdown list. - Click on the Edit button next to the organization name.
- Scroll down to the Contact Information section.
- Update the Email field with the new email address.
- Click Save to save the changes.
Method 2: Using the Salesforce API
- Use the Salesforce API to update the
Email
field in theOrganization
object. You can use theupdate
method of theOrganization
object. - 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
- Install the Salesforce CLI on your machine.
- Run the following command:
sfdx force:org:update --email [email protected]
Replace
[email protected]
with the new email address.
Important Notes:
- Changing the email address of your Salesforce org will update the email address used for all communication, including login notifications, password reset emails, and other automated emails.
- If you're using a custom domain for your Salesforce org, you may need to update the DNS records to reflect the new email address.
- If you're using a third-party email service, such as SendGrid or Mailgun, you may need to update your email service settings to reflect the new email address.
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.