Skip to Content

SMTP Integration with Salesforce

Preparation

To configure SMTPRelay, you will first need to gather some information. This is:

  • The Salesforce organization ID
  • Your email server settings: smtp-server, username, password

It is advised to use a separate SMTP username/password for sending emails from Salesforce. This makes it easier to administrate. Please check your email-service if this is possible. 

You can find the Salesforce orgId by logging in to salesforce. Its under SetupCompany ProfileCompany Information. It’s the 15-character code under Salesforce.com Organization ID.


Configure SMTPRelay

Log in to SMTPRelay, and go to your services list:

Click Add a New Relay and enter the SMTP credentials. Enter your salesforce orgId.

After you click Save, we will automatically validate the authentication settings. If everything is ok, the control panel will show you how to configure Salesforce.


Configure Salesforce

In Salesforce, go to SetupEmail AdministrationEmail Relay Activation. Enter the following:

  • Email Host: relay.getsmtprelay.com
  • Port: 587
  • TLS Setting: “Preferred”
  • Uncheck “Restrict Relay To Domains”
  • Check Active

Click save.

You might notice a warning about using a relay in combination with bounce management. In Salesforce, go to SetupEmail AdministrationDeliverability. Uncheck the following options:

  • Uncheck “Activate bounce management”
  • Uncheck “Enable compliance with standard email security mechanisms”

Finally, click save.

You should now be able to send a test message from Salesforce. If it is not delivered to your mailbox, please check your SMTP and DNS configuration.