---
schema_version: "1"
id: 9f30e22d1b5eade930e5fb25a73a6e4c3db3f2cf390207b650d315885dfad593
title: ExternalEmailServices Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_ExternalEmailService_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ExternalEmailService_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a68078c869422372013d632b26b99430188c23cd8c8c16c2b613f61878072427
description: Access information about integration with external email services, such as sending email within Salesforce through an external email account.These methods are for ExternalEmailService. All methods are static.Get information about whether an external email service has been authorized to send email on behalf of a user.
---
# ExternalEmailServices Class

Access information about integration with external email services, such as sending email within Salesforce through an external email account.

## Namespace

[ConnectApi](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_connect_api.htm "The ConnectApi namespace (also called Connect in Apex) provides classes for accessing the same data available in Connect REST API. Use Connect in Apex to create custom experiences in Salesforce.")

## ExternalEmailServices Methods

These methods are for ExternalEmailService. All methods are static.

- **[getUserOauthInfo(landingPage)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ExternalEmailService_static_methods.htm#apex_ConnectAPI_ExternalEmailService_getUserOauthInfo_1)**  
    Get information about whether an external email service has been authorized to send email on behalf of a user.

### getUserOauthInfo(landingPage)

Get information about whether an external email service has been authorized to send email on behalf of a user.

#### API Version

37.0

#### Requires Chatter

No

#### Signature

public static getUserOauthInfo(String landingPage)

#### Parameters

landingPage

Type: String

The landing page that the user starts on when they are finished with the OAuth authorization process.

#### Return Value

Type: [ConnectApi.UserOauthInfo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_oauth_user.htm "User OAuth information.")

#### See Also

- [_Apex Developer Guide_: Testing ConnectApi Code](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectAPI_TestingApex.htm "Apex Developer Guide: Testing ConnectApi Code - HTML (New Window)")