Table of Contents

Class UsersResource.SettingsResource.SendAsResource

Namespace
Google.Apis.Gmail.v1
Assembly
Google.Apis.Gmail.v1.dll

The "sendAs" collection of methods.

public class UsersResource.SettingsResource.SendAsResource
Inheritance
UsersResource.SettingsResource.SendAsResource
Inherited Members

Constructors

SendAsResource(IClientService)

Constructs a new resource.

public SendAsResource(IClientService service)

Parameters

service IClientService

Properties

SmimeInfo

Gets the SmimeInfo resource.

public virtual UsersResource.SettingsResource.SendAsResource.SmimeInfoResource SmimeInfo { get; }

Property Value

UsersResource.SettingsResource.SendAsResource.SmimeInfoResource

Methods

Create(SendAs, string)

Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This method is only available to service account clients that have been delegated domain-wide authority.

public virtual UsersResource.SettingsResource.SendAsResource.CreateRequest Create(SendAs body, string userId)

Parameters

body SendAs

The body of the request.

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

Returns

UsersResource.SettingsResource.SendAsResource.CreateRequest

Delete(string, string)

Deletes the specified send-as alias. Revokes any verification that may have been required for using it. This method is only available to service account clients that have been delegated domain-wide authority.

public virtual UsersResource.SettingsResource.SendAsResource.DeleteRequest Delete(string userId, string sendAsEmail)

Parameters

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

sendAsEmail string

The send-as alias to be deleted.

Returns

UsersResource.SettingsResource.SendAsResource.DeleteRequest

Get(string, string)

Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.

public virtual UsersResource.SettingsResource.SendAsResource.GetRequest Get(string userId, string sendAsEmail)

Parameters

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

sendAsEmail string

The send-as alias to be retrieved.

Returns

UsersResource.SettingsResource.SendAsResource.GetRequest

List(string)

Lists the send-as aliases for the specified account. The result includes the primary send- as address associated with the account as well as any custom "from" aliases.

public virtual UsersResource.SettingsResource.SendAsResource.ListRequest List(string userId)

Parameters

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

Returns

UsersResource.SettingsResource.SendAsResource.ListRequest

Patch(SendAs, string, string)

Patch the specified send-as alias.

public virtual UsersResource.SettingsResource.SendAsResource.PatchRequest Patch(SendAs body, string userId, string sendAsEmail)

Parameters

body SendAs

The body of the request.

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

sendAsEmail string

The send-as alias to be updated.

Returns

UsersResource.SettingsResource.SendAsResource.PatchRequest

Update(SendAs, string, string)

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.

public virtual UsersResource.SettingsResource.SendAsResource.UpdateRequest Update(SendAs body, string userId, string sendAsEmail)

Parameters

body SendAs

The body of the request.

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

sendAsEmail string

The send-as alias to be updated.

Returns

UsersResource.SettingsResource.SendAsResource.UpdateRequest

Verify(string, string)

Sends a verification email to the specified send-as alias address. The verification status must be pending. This method is only available to service account clients that have been delegated domain-wide authority.

public virtual UsersResource.SettingsResource.SendAsResource.VerifyRequest Verify(string userId, string sendAsEmail)

Parameters

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

sendAsEmail string

The send-as alias to be verified.

Returns

UsersResource.SettingsResource.SendAsResource.VerifyRequest