Class UsersResource.SettingsResource.SendAsResource
The "sendAs" collection of methods.
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource.SettingsResource.SendAsResource
Constructors
SendAsResource(IClientService)
Constructs a new resource.
Declaration
public SendAsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
SmimeInfo
Gets the SmimeInfo resource.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.SmimeInfoResource SmimeInfo { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.CreateRequest Create(SendAs body, string userId)
Parameters
Type | Name | Description |
---|---|---|
SendAs | body | The body of the request. |
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
Returns
Type | Description |
---|---|
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.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.DeleteRequest Delete(string userId, string sendAsEmail)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | sendAsEmail | The send-as alias to be deleted. |
Returns
Type | Description |
---|---|
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.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.GetRequest Get(string userId, string sendAsEmail)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | sendAsEmail | The send-as alias to be retrieved. |
Returns
Type | Description |
---|---|
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.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.ListRequest List(string userId)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.SendAsResource.ListRequest |
Patch(SendAs, string, string)
Patch the specified send-as alias.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.PatchRequest Patch(SendAs body, string userId, string sendAsEmail)
Parameters
Type | Name | Description |
---|---|---|
SendAs | body | The body of the request. |
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | sendAsEmail | The send-as alias to be updated. |
Returns
Type | Description |
---|---|
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.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.UpdateRequest Update(SendAs body, string userId, string sendAsEmail)
Parameters
Type | Name | Description |
---|---|---|
SendAs | body | The body of the request. |
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | sendAsEmail | The send-as alias to be updated. |
Returns
Type | Description |
---|---|
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.
Declaration
public virtual UsersResource.SettingsResource.SendAsResource.VerifyRequest Verify(string userId, string sendAsEmail)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | sendAsEmail | The send-as alias to be verified. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.SendAsResource.VerifyRequest |