Documentation ¶
Index ¶
- Constants
- type Attachment
- type BlackEmailAddress
- type Client
- func (c *Client) CreateEmailAddress(request *CreateEmailAddressRequest) (response *CreateEmailAddressResponse, err error)
- func (c *Client) CreateEmailAddressWithContext(ctx context.Context, request *CreateEmailAddressRequest) (response *CreateEmailAddressResponse, err error)
- func (c *Client) CreateEmailIdentity(request *CreateEmailIdentityRequest) (response *CreateEmailIdentityResponse, err error)
- func (c *Client) CreateEmailIdentityWithContext(ctx context.Context, request *CreateEmailIdentityRequest) (response *CreateEmailIdentityResponse, err error)
- func (c *Client) CreateReceiver(request *CreateReceiverRequest) (response *CreateReceiverResponse, err error)
- func (c *Client) CreateReceiverDetail(request *CreateReceiverDetailRequest) (response *CreateReceiverDetailResponse, err error)
- func (c *Client) CreateReceiverDetailWithContext(ctx context.Context, request *CreateReceiverDetailRequest) (response *CreateReceiverDetailResponse, err error)
- func (c *Client) CreateReceiverWithContext(ctx context.Context, request *CreateReceiverRequest) (response *CreateReceiverResponse, err error)
- func (c *Client) DeleteBlackList(request *DeleteBlackListRequest) (response *DeleteBlackListResponse, err error)
- func (c *Client) DeleteBlackListWithContext(ctx context.Context, request *DeleteBlackListRequest) (response *DeleteBlackListResponse, err error)
- func (c *Client) DeleteEmailAddress(request *DeleteEmailAddressRequest) (response *DeleteEmailAddressResponse, err error)
- func (c *Client) DeleteEmailAddressWithContext(ctx context.Context, request *DeleteEmailAddressRequest) (response *DeleteEmailAddressResponse, err error)
- func (c *Client) DeleteEmailIdentity(request *DeleteEmailIdentityRequest) (response *DeleteEmailIdentityResponse, err error)
- func (c *Client) DeleteEmailIdentityWithContext(ctx context.Context, request *DeleteEmailIdentityRequest) (response *DeleteEmailIdentityResponse, err error)
- func (c *Client) DeleteEmailTemplate(request *DeleteEmailTemplateRequest) (response *DeleteEmailTemplateResponse, err error)
- func (c *Client) DeleteEmailTemplateWithContext(ctx context.Context, request *DeleteEmailTemplateRequest) (response *DeleteEmailTemplateResponse, err error)
- func (c *Client) DeleteReceiver(request *DeleteReceiverRequest) (response *DeleteReceiverResponse, err error)
- func (c *Client) DeleteReceiverWithContext(ctx context.Context, request *DeleteReceiverRequest) (response *DeleteReceiverResponse, err error)
- func (c *Client) GetEmailIdentity(request *GetEmailIdentityRequest) (response *GetEmailIdentityResponse, err error)
- func (c *Client) GetEmailIdentityWithContext(ctx context.Context, request *GetEmailIdentityRequest) (response *GetEmailIdentityResponse, err error)
- func (c *Client) GetEmailTemplate(request *GetEmailTemplateRequest) (response *GetEmailTemplateResponse, err error)
- func (c *Client) GetEmailTemplateWithContext(ctx context.Context, request *GetEmailTemplateRequest) (response *GetEmailTemplateResponse, err error)
- func (c *Client) GetStatisticsReport(request *GetStatisticsReportRequest) (response *GetStatisticsReportResponse, err error)
- func (c *Client) GetStatisticsReportWithContext(ctx context.Context, request *GetStatisticsReportRequest) (response *GetStatisticsReportResponse, err error)
- func (c *Client) ListBlackEmailAddress(request *ListBlackEmailAddressRequest) (response *ListBlackEmailAddressResponse, err error)
- func (c *Client) ListBlackEmailAddressWithContext(ctx context.Context, request *ListBlackEmailAddressRequest) (response *ListBlackEmailAddressResponse, err error)
- func (c *Client) ListEmailAddress(request *ListEmailAddressRequest) (response *ListEmailAddressResponse, err error)
- func (c *Client) ListEmailAddressWithContext(ctx context.Context, request *ListEmailAddressRequest) (response *ListEmailAddressResponse, err error)
- func (c *Client) ListEmailIdentities(request *ListEmailIdentitiesRequest) (response *ListEmailIdentitiesResponse, err error)
- func (c *Client) ListEmailIdentitiesWithContext(ctx context.Context, request *ListEmailIdentitiesRequest) (response *ListEmailIdentitiesResponse, err error)
- func (c *Client) ListEmailTemplates(request *ListEmailTemplatesRequest) (response *ListEmailTemplatesResponse, err error)
- func (c *Client) ListEmailTemplatesWithContext(ctx context.Context, request *ListEmailTemplatesRequest) (response *ListEmailTemplatesResponse, err error)
- func (c *Client) ListReceivers(request *ListReceiversRequest) (response *ListReceiversResponse, err error)
- func (c *Client) ListReceiversWithContext(ctx context.Context, request *ListReceiversRequest) (response *ListReceiversResponse, err error)
- func (c *Client) ListSendTasks(request *ListSendTasksRequest) (response *ListSendTasksResponse, err error)
- func (c *Client) ListSendTasksWithContext(ctx context.Context, request *ListSendTasksRequest) (response *ListSendTasksResponse, err error)
- func (c *Client) SendEmail(request *SendEmailRequest) (response *SendEmailResponse, err error)
- func (c *Client) SendEmailWithContext(ctx context.Context, request *SendEmailRequest) (response *SendEmailResponse, err error)
- func (c *Client) UpdateEmailIdentity(request *UpdateEmailIdentityRequest) (response *UpdateEmailIdentityResponse, err error)
- func (c *Client) UpdateEmailIdentityWithContext(ctx context.Context, request *UpdateEmailIdentityRequest) (response *UpdateEmailIdentityResponse, err error)
- type CreateEmailAddressRequest
- type CreateEmailAddressResponse
- type CreateEmailIdentityRequest
- type CreateEmailIdentityResponse
- type CreateReceiverDetailRequest
- type CreateReceiverDetailResponse
- type CreateReceiverRequest
- type CreateReceiverResponse
- type CycleEmailParam
- type DNSAttributes
- type DeleteBlackListRequest
- type DeleteBlackListResponse
- type DeleteEmailAddressRequest
- type DeleteEmailAddressResponse
- type DeleteEmailIdentityRequest
- type DeleteEmailIdentityResponse
- type DeleteEmailTemplateRequest
- type DeleteEmailTemplateResponse
- type DeleteReceiverRequest
- type DeleteReceiverResponse
- type EmailIdentity
- type EmailSender
- type GetEmailIdentityRequest
- type GetEmailIdentityResponse
- type GetEmailTemplateRequest
- type GetEmailTemplateResponse
- type GetStatisticsReportRequest
- type GetStatisticsReportResponse
- type ListBlackEmailAddressRequest
- type ListBlackEmailAddressResponse
- type ListEmailAddressRequest
- type ListEmailAddressResponse
- type ListEmailIdentitiesRequest
- type ListEmailIdentitiesResponse
- type ListEmailTemplatesRequest
- type ListEmailTemplatesResponse
- type ListReceiversRequest
- type ListReceiversResponse
- type ListSendTasksRequest
- type ListSendTasksResponse
- type ReceiverData
- type SendEmailRequest
- type SendEmailResponse
- type SendTaskData
- type Simple
- type Template
- type TemplateContent
- type TemplatesMetadata
- type TimedEmailParam
- type UpdateEmailIdentityRequest
- type UpdateEmailIdentityResponse
- type Volume
Constants ¶
const ( // Operation failed. FAILEDOPERATION = "FailedOperation" // The attachments are too large. Make sure they do not exceed the size limit for a single attachment and the overall limit for all attachments. FAILEDOPERATION_ATTACHCONTENTTOOLARGE = "FailedOperation.AttachContentToolarge" // The email address is in the blocklist. FAILEDOPERATION_EMAILADDRINBLACKLIST = "FailedOperation.EmailAddrInBlacklist" // The email is too large. Remove some content. FAILEDOPERATION_EMAILCONTENTTOOLARGE = "FailedOperation.EmailContentToolarge" // The number of emails exceeds the daily sending limit. FAILEDOPERATION_EXCEEDSENDLIMIT = "FailedOperation.ExceedSendLimit" // You have sent too many emails to the same address in a short period. FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" // The email has been blocked temporarily due to high rejection rate. FAILEDOPERATION_HIGHREJECTIONRATE = "FailedOperation.HighRejectionRate" // Incorrect email address. FAILEDOPERATION_INCORRECTEMAIL = "FailedOperation.IncorrectEmail" // Incorrect sender format. Follow the sample in this document. FAILEDOPERATION_INCORRECTSENDER = "FailedOperation.IncorrectSender" // Insufficient balance or account in arrears. FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" // Insufficient emails in plans. FAILEDOPERATION_INSUFFICIENTQUOTA = "FailedOperation.InsufficientQuota" // Unsupported attachment name. Make sure it does not contain special characters. For details, see the attachment description. FAILEDOPERATION_INVALIDATTACHNAME = "FailedOperation.InvalidAttachName" // Reached the query limit (100). FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit" // Invalid template ID or unavailable template. FAILEDOPERATION_INVALIDTEMPLATEID = "FailedOperation.InvalidTemplateID" // Missing email content (`TemplateData` and `Simple` cannot be both empty). FAILEDOPERATION_MISSINGEMAILCONTENT = "FailedOperation.MissingEmailContent" // No permission to send an email with attachments. FAILEDOPERATION_NOATTACHPERMISSION = "FailedOperation.NoAttachPermission" // Unable to send because the sender is not verified. FAILEDOPERATION_NOTAUTHENTICATEDSENDER = "FailedOperation.NotAuthenticatedSender" // Incorrect protocol. Make sure the protocol is correct. FAILEDOPERATION_PROTOCOLCHECKERR = "FailedOperation.ProtocolCheckErr" // The recipient has unsubscribed. FAILEDOPERATION_RECEIVERHASUNSUBSCRIBED = "FailedOperation.ReceiverHasUnsubscribed" // Email sending error. Please submit a ticket to us for troubleshooting. FAILEDOPERATION_SENDEMAILERR = "FailedOperation.SendEmailErr" // The request has not taken effect. Try again. FAILEDOPERATION_SERVICENOTAVAILABLE = "FailedOperation.ServiceNotAvailable" // The email has been blocked temporarily due to violations of rules. FAILEDOPERATION_TEMPORARYBLOCKED = "FailedOperation.TemporaryBlocked" // Too many attachments. A single email supports up to 10 attachments. FAILEDOPERATION_TOOMANYATTACHMENTS = "FailedOperation.TooManyAttachments" // Too many recipients. Set a maximum of 50 recipients at a time. FAILEDOPERATION_TOOMANYRECIPIENTS = "FailedOperation.TooManyRecipients" // Unsupported email type. FAILEDOPERATION_UNSUPPORTMAILTYPE = "FailedOperation.UnsupportMailType" // The feature of sending custom emails is not enabled. Use a template to send emails. FAILEDOPERATION_WITHOUTPERMISSION = "FailedOperation.WithOutPermission" // The format of the `TemplateData` field is incorrect. Make sure it is in JSON format. FAILEDOPERATION_WRONGCONTENTJSON = "FailedOperation.WrongContentJson" // Internal error. INTERNALERROR = "InternalError" // Incorrect parameter. INVALIDPARAMETER = "InvalidParameter" // Invalid parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // Incorrect attachment content. Make sure the base64 content is correct. INVALIDPARAMETERVALUE_ATTACHCONTENTISWRONG = "InvalidParameterValue.AttachContentIsWrong" // This sender domain has been created by another Tencent Cloud account. INVALIDPARAMETERVALUE_CREATEDBYOTHER = "InvalidParameterValue.CreatedByOther" // The recipient or sender address is empty. Please check. INVALIDPARAMETERVALUE_EMAILADDRESSISNULL = "InvalidParameterValue.EmailAddressIsNULL" // Incorrect email content. Make sure TEXT/HTML base64 is correct. INVALIDPARAMETERVALUE_EMAILCONTENTISWRONG = "InvalidParameterValue.EmailContentIsWrong" // Invalid email address. Make sure the address format is correct. INVALIDPARAMETERVALUE_ILLEGALEMAILADDRESS = "InvalidParameterValue.IllegalEmailAddress" // Invalid domain value. INVALIDPARAMETERVALUE_INVALIDEMAILIDENTITY = "InvalidParameterValue.InvalidEmailIdentity" // You don’t have the sender address. Check if it exists. INVALIDPARAMETERVALUE_NOSUCHSENDER = "InvalidParameterValue.NoSuchSender" // This sender domain does not exist. Create it first. INVALIDPARAMETERVALUE_NOTEXISTDOMAIN = "InvalidParameterValue.NotExistDomain" // Invalid recipient group description. The description cannot contain special characters and must contain 1 to 300 characters. INVALIDPARAMETERVALUE_RECEIVERDESCILLEGAL = "InvalidParameterValue.ReceiverDescIllegal" // Invalid recipient group name. Check the name and its size. INVALIDPARAMETERVALUE_RECEIVERNAMEILLEGAL = "InvalidParameterValue.ReceiverNameIllegal" // This sender domain already exists. Do not create it again. INVALIDPARAMETERVALUE_REPEATCREATION = "InvalidParameterValue.RepeatCreation" // This email address already exists. Do not create it again. INVALIDPARAMETERVALUE_REPEATEMAILADDRESS = "InvalidParameterValue.RepeatEmailAddress" // Duplicate recipient group name. INVALIDPARAMETERVALUE_REPEATRECEIVERNAME = "InvalidParameterValue.RepeatReceiverName" // This template does not exist. Create one first. INVALIDPARAMETERVALUE_TEMPLATENOTEXIST = "InvalidParameterValue.TemplateNotExist" // Incorrect search date. Make sure the date and its format are valid. INVALIDPARAMETERVALUE_WRONGDATE = "InvalidParameterValue.WrongDate" // The quota limit is exceeded. LIMITEXCEEDED = "LimitExceeded" // The number of recipient email addresses exceeded the limit. LIMITEXCEEDED_EXCEEDRECEIVERDETAILLIMIT = "LimitExceeded.ExceedReceiverDetailLimit" // The number of recipient groups exceeded the limit. LIMITEXCEEDED_EXCEEDRECEIVERLIMIT = "LimitExceeded.ExceedReceiverLimit" // Missing parameter. MISSINGPARAMETER = "MissingParameter" // The recipient email address is required. MISSINGPARAMETER_EMAILSNECESSARY = "MissingParameter.EmailsNecessary" // The recipient group ID is required. MISSINGPARAMETER_RECEIVERIDNECESSARY = "MissingParameter.ReceiverIdNecessary" // Operation denied. OPERATIONDENIED = "OperationDenied" // Domain verification failed. Check whether the domain has passed verification. OPERATIONDENIED_DOMAINNOTVERIFIED = "OperationDenied.DomainNotVerified" // The number of sender domains exceeds the upper limit. OPERATIONDENIED_EXCEEDDOMAINLIMIT = "OperationDenied.ExceedDomainLimit" // The number of sender addresses exceeds the upper limit. OPERATIONDENIED_EXCEEDSENDERLIMIT = "OperationDenied.ExceedSenderLimit" // The recipient group is being operated. Please try later. OPERATIONDENIED_RECEIVERISOPERATING = "OperationDenied.ReceiverIsOperating" // The recipient group does not exist. OPERATIONDENIED_RECEIVERNOTEXIST = "OperationDenied.ReceiverNotExist" // The number of requests exceeds the frequency limit. REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // Insufficient resources. RESOURCEINSUFFICIENT = "ResourceInsufficient" // The resource does not exist. RESOURCENOTFOUND = "ResourceNotFound" // The resource is unavailable. RESOURCEUNAVAILABLE = "ResourceUnavailable" // Unknown parameter error. UNKNOWNPARAMETER = "UnknownParameter" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" )
const APIVersion = "2020-10-02"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { // Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see [Attachment Types](https://intl.cloud.tencent.com/document/product/1288/51951?from_cn_redirect=1). FileName *string `json:"FileName,omitempty" name:"FileName"` // Attachment content after Base64 encoding. A single attachment cannot exceed 4 MB. Note: Tencent Cloud APIs require that a request packet should not exceed 8 MB. If you are sending multiple attachments, the total size of these attachments cannot exceed 8 MB. Content *string `json:"Content,omitempty" name:"Content"` }
type BlackEmailAddress ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateEmailAddress ¶
func (c *Client) CreateEmailAddress(request *CreateEmailAddressRequest) (response *CreateEmailAddressResponse, err error)
CreateEmailAddress After the sender domain is verified, you need a sender address to send emails. For example, if your sender domain is mail.qcloud.com, your sender address can be service@mail.qcloud.com. If you want to display your name (such as "Tencent Cloud") in the inbox list of the recipients, the sender address should be in the format of `Tencent Cloud <email address>`. Please note that there must be a space between your name and the first angle bracket.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ILLEGALEMAILADDRESS = "InvalidParameterValue.IllegalEmailAddress" INVALIDPARAMETERVALUE_REPEATEMAILADDRESS = "InvalidParameterValue.RepeatEmailAddress" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_DOMAINNOTVERIFIED = "OperationDenied.DomainNotVerified" OPERATIONDENIED_EXCEEDSENDERLIMIT = "OperationDenied.ExceedSenderLimit" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) CreateEmailAddressWithContext ¶
func (c *Client) CreateEmailAddressWithContext(ctx context.Context, request *CreateEmailAddressRequest) (response *CreateEmailAddressResponse, err error)
CreateEmailAddress After the sender domain is verified, you need a sender address to send emails. For example, if your sender domain is mail.qcloud.com, your sender address can be service@mail.qcloud.com. If you want to display your name (such as "Tencent Cloud") in the inbox list of the recipients, the sender address should be in the format of `Tencent Cloud <email address>`. Please note that there must be a space between your name and the first angle bracket.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ILLEGALEMAILADDRESS = "InvalidParameterValue.IllegalEmailAddress" INVALIDPARAMETERVALUE_REPEATEMAILADDRESS = "InvalidParameterValue.RepeatEmailAddress" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_DOMAINNOTVERIFIED = "OperationDenied.DomainNotVerified" OPERATIONDENIED_EXCEEDSENDERLIMIT = "OperationDenied.ExceedSenderLimit" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) CreateEmailIdentity ¶
func (c *Client) CreateEmailIdentity(request *CreateEmailIdentityRequest) (response *CreateEmailIdentityResponse, err error)
CreateEmailIdentity This API is used to create a sender domain. Before you can send an email using Tencent Cloud SES, you must create a sender domain as your identity. It can be the domain of your website or mobile app. You must verify the domain to prove that you own it and authorize Tencent Cloud SES to use it to send emails.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CREATEDBYOTHER = "InvalidParameterValue.CreatedByOther" INVALIDPARAMETERVALUE_INVALIDEMAILIDENTITY = "InvalidParameterValue.InvalidEmailIdentity" INVALIDPARAMETERVALUE_REPEATCREATION = "InvalidParameterValue.RepeatCreation" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_EXCEEDDOMAINLIMIT = "OperationDenied.ExceedDomainLimit" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) CreateEmailIdentityWithContext ¶
func (c *Client) CreateEmailIdentityWithContext(ctx context.Context, request *CreateEmailIdentityRequest) (response *CreateEmailIdentityResponse, err error)
CreateEmailIdentity This API is used to create a sender domain. Before you can send an email using Tencent Cloud SES, you must create a sender domain as your identity. It can be the domain of your website or mobile app. You must verify the domain to prove that you own it and authorize Tencent Cloud SES to use it to send emails.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CREATEDBYOTHER = "InvalidParameterValue.CreatedByOther" INVALIDPARAMETERVALUE_INVALIDEMAILIDENTITY = "InvalidParameterValue.InvalidEmailIdentity" INVALIDPARAMETERVALUE_REPEATCREATION = "InvalidParameterValue.RepeatCreation" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" OPERATIONDENIED_EXCEEDDOMAINLIMIT = "OperationDenied.ExceedDomainLimit" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) CreateReceiver ¶
func (c *Client) CreateReceiver(request *CreateReceiverRequest) (response *CreateReceiverResponse, err error)
CreateReceiver This API is used to create a recipient group, which is the list of target email addresses for batch sending emails. After creating a group, you need to upload recipient email addresses. Then, you can create a sending task and select the group to batch send emails.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_RECEIVERDESCILLEGAL = "InvalidParameterValue.ReceiverDescIllegal" INVALIDPARAMETERVALUE_RECEIVERNAMEILLEGAL = "InvalidParameterValue.ReceiverNameIllegal" INVALIDPARAMETERVALUE_REPEATRECEIVERNAME = "InvalidParameterValue.RepeatReceiverName" LIMITEXCEEDED_EXCEEDRECEIVERLIMIT = "LimitExceeded.ExceedReceiverLimit"
func (*Client) CreateReceiverDetail ¶
func (c *Client) CreateReceiverDetail(request *CreateReceiverDetailRequest) (response *CreateReceiverDetailResponse, err error)
CreateReceiverDetail This API is used to add recipient email addresses (up to 100,000 at a time) to a recipient group. This will be processed asynchronously. You can upload recipient email addresses only once. If the data volume is large, it may take some time to upload. You can check the recipient group to learn the upload status and upload quantity.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_SERVICENOTAVAILABLE = "FailedOperation.ServiceNotAvailable" INTERNALERROR = "InternalError" LIMITEXCEEDED_EXCEEDRECEIVERDETAILLIMIT = "LimitExceeded.ExceedReceiverDetailLimit" MISSINGPARAMETER_EMAILSNECESSARY = "MissingParameter.EmailsNecessary" MISSINGPARAMETER_RECEIVERIDNECESSARY = "MissingParameter.ReceiverIdNecessary" OPERATIONDENIED_RECEIVERISOPERATING = "OperationDenied.ReceiverIsOperating" OPERATIONDENIED_RECEIVERNOTEXIST = "OperationDenied.ReceiverNotExist"
func (*Client) CreateReceiverDetailWithContext ¶
func (c *Client) CreateReceiverDetailWithContext(ctx context.Context, request *CreateReceiverDetailRequest) (response *CreateReceiverDetailResponse, err error)
CreateReceiverDetail This API is used to add recipient email addresses (up to 100,000 at a time) to a recipient group. This will be processed asynchronously. You can upload recipient email addresses only once. If the data volume is large, it may take some time to upload. You can check the recipient group to learn the upload status and upload quantity.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_SERVICENOTAVAILABLE = "FailedOperation.ServiceNotAvailable" INTERNALERROR = "InternalError" LIMITEXCEEDED_EXCEEDRECEIVERDETAILLIMIT = "LimitExceeded.ExceedReceiverDetailLimit" MISSINGPARAMETER_EMAILSNECESSARY = "MissingParameter.EmailsNecessary" MISSINGPARAMETER_RECEIVERIDNECESSARY = "MissingParameter.ReceiverIdNecessary" OPERATIONDENIED_RECEIVERISOPERATING = "OperationDenied.ReceiverIsOperating" OPERATIONDENIED_RECEIVERNOTEXIST = "OperationDenied.ReceiverNotExist"
func (*Client) CreateReceiverWithContext ¶
func (c *Client) CreateReceiverWithContext(ctx context.Context, request *CreateReceiverRequest) (response *CreateReceiverResponse, err error)
CreateReceiver This API is used to create a recipient group, which is the list of target email addresses for batch sending emails. After creating a group, you need to upload recipient email addresses. Then, you can create a sending task and select the group to batch send emails.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_RECEIVERDESCILLEGAL = "InvalidParameterValue.ReceiverDescIllegal" INVALIDPARAMETERVALUE_RECEIVERNAMEILLEGAL = "InvalidParameterValue.ReceiverNameIllegal" INVALIDPARAMETERVALUE_REPEATRECEIVERNAME = "InvalidParameterValue.RepeatReceiverName" LIMITEXCEEDED_EXCEEDRECEIVERLIMIT = "LimitExceeded.ExceedReceiverLimit"
func (*Client) DeleteBlackList ¶
func (c *Client) DeleteBlackList(request *DeleteBlackListRequest) (response *DeleteBlackListResponse, err error)
DeleteBlackList This API is used to unblocklist email addresses. If you confirm that a blocklisted recipient address is valid and active, you can remove it from Tencent Cloud’s address blocklist database.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteBlackListWithContext ¶
func (c *Client) DeleteBlackListWithContext(ctx context.Context, request *DeleteBlackListRequest) (response *DeleteBlackListResponse, err error)
DeleteBlackList This API is used to unblocklist email addresses. If you confirm that a blocklisted recipient address is valid and active, you can remove it from Tencent Cloud’s address blocklist database.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteEmailAddress ¶
func (c *Client) DeleteEmailAddress(request *DeleteEmailAddressRequest) (response *DeleteEmailAddressResponse, err error)
DeleteEmailAddress This API is used to delete a sender address.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOSUCHSENDER = "InvalidParameterValue.NoSuchSender" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteEmailAddressWithContext ¶
func (c *Client) DeleteEmailAddressWithContext(ctx context.Context, request *DeleteEmailAddressRequest) (response *DeleteEmailAddressResponse, err error)
DeleteEmailAddress This API is used to delete a sender address.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOSUCHSENDER = "InvalidParameterValue.NoSuchSender" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteEmailIdentity ¶
func (c *Client) DeleteEmailIdentity(request *DeleteEmailIdentityRequest) (response *DeleteEmailIdentityResponse, err error)
DeleteEmailIdentity This API is used to delete a sender domain. After deleted, the sender domain can no longer be used to send emails.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteEmailIdentityWithContext ¶
func (c *Client) DeleteEmailIdentityWithContext(ctx context.Context, request *DeleteEmailIdentityRequest) (response *DeleteEmailIdentityResponse, err error)
DeleteEmailIdentity This API is used to delete a sender domain. After deleted, the sender domain can no longer be used to send emails.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteEmailTemplate ¶
func (c *Client) DeleteEmailTemplate(request *DeleteEmailTemplateRequest) (response *DeleteEmailTemplateResponse, err error)
DeleteEmailTemplate This API is used to delete an email template.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteEmailTemplateWithContext ¶
func (c *Client) DeleteEmailTemplateWithContext(ctx context.Context, request *DeleteEmailTemplateRequest) (response *DeleteEmailTemplateResponse, err error)
DeleteEmailTemplate This API is used to delete an email template.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) DeleteReceiver ¶
func (c *Client) DeleteReceiver(request *DeleteReceiverRequest) (response *DeleteReceiverResponse, err error)
DeleteReceiver This API is used to delete a recipient group and all recipient email addresses in the group based on the recipient group ID.
error code that may be returned:
INTERNALERROR = "InternalError" MISSINGPARAMETER_RECEIVERIDNECESSARY = "MissingParameter.ReceiverIdNecessary"
func (*Client) DeleteReceiverWithContext ¶
func (c *Client) DeleteReceiverWithContext(ctx context.Context, request *DeleteReceiverRequest) (response *DeleteReceiverResponse, err error)
DeleteReceiver This API is used to delete a recipient group and all recipient email addresses in the group based on the recipient group ID.
error code that may be returned:
INTERNALERROR = "InternalError" MISSINGPARAMETER_RECEIVERIDNECESSARY = "MissingParameter.ReceiverIdNecessary"
func (*Client) GetEmailIdentity ¶
func (c *Client) GetEmailIdentity(request *GetEmailIdentityRequest) (response *GetEmailIdentityResponse, err error)
GetEmailIdentity This API is used to get the configuration details of a sender domain.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOTEXISTDOMAIN = "InvalidParameterValue.NotExistDomain" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) GetEmailIdentityWithContext ¶
func (c *Client) GetEmailIdentityWithContext(ctx context.Context, request *GetEmailIdentityRequest) (response *GetEmailIdentityResponse, err error)
GetEmailIdentity This API is used to get the configuration details of a sender domain.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOTEXISTDOMAIN = "InvalidParameterValue.NotExistDomain" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) GetEmailTemplate ¶
func (c *Client) GetEmailTemplate(request *GetEmailTemplateRequest) (response *GetEmailTemplateResponse, err error)
GetEmailTemplate This API is used to get the details of a template.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_TEMPLATENOTEXIST = "InvalidParameterValue.TemplateNotExist" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) GetEmailTemplateWithContext ¶
func (c *Client) GetEmailTemplateWithContext(ctx context.Context, request *GetEmailTemplateRequest) (response *GetEmailTemplateResponse, err error)
GetEmailTemplate This API is used to get the details of a template.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_TEMPLATENOTEXIST = "InvalidParameterValue.TemplateNotExist" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) GetStatisticsReport ¶
func (c *Client) GetStatisticsReport(request *GetStatisticsReportRequest) (response *GetStatisticsReportResponse, err error)
GetStatisticsReport This API is used to get the email sending statistics over a recent period, including data on sent emails, delivery success rate, open rate, bounce rate, and so on.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_WRONGDATE = "InvalidParameterValue.WrongDate" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) GetStatisticsReportWithContext ¶
func (c *Client) GetStatisticsReportWithContext(ctx context.Context, request *GetStatisticsReportRequest) (response *GetStatisticsReportResponse, err error)
GetStatisticsReport This API is used to get the email sending statistics over a recent period, including data on sent emails, delivery success rate, open rate, bounce rate, and so on.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_WRONGDATE = "InvalidParameterValue.WrongDate" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListBlackEmailAddress ¶
func (c *Client) ListBlackEmailAddress(request *ListBlackEmailAddressRequest) (response *ListBlackEmailAddressResponse, err error)
ListBlackEmailAddress The API is used to get blocklisted addresses. In the case of a hard bounce, Tencent Cloud will blocklist the recipient address and do not allow any user to send emails to this address. If you confirm that this is a misjudgment, you can remove it from the blocklist.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_WRONGDATE = "InvalidParameterValue.WrongDate" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListBlackEmailAddressWithContext ¶
func (c *Client) ListBlackEmailAddressWithContext(ctx context.Context, request *ListBlackEmailAddressRequest) (response *ListBlackEmailAddressResponse, err error)
ListBlackEmailAddress The API is used to get blocklisted addresses. In the case of a hard bounce, Tencent Cloud will blocklist the recipient address and do not allow any user to send emails to this address. If you confirm that this is a misjudgment, you can remove it from the blocklist.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_WRONGDATE = "InvalidParameterValue.WrongDate" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListEmailAddress ¶
func (c *Client) ListEmailAddress(request *ListEmailAddressRequest) (response *ListEmailAddressResponse, err error)
ListEmailAddress This API is used to get the list of sender addresses.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListEmailAddressWithContext ¶
func (c *Client) ListEmailAddressWithContext(ctx context.Context, request *ListEmailAddressRequest) (response *ListEmailAddressResponse, err error)
ListEmailAddress This API is used to get the list of sender addresses.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListEmailIdentities ¶
func (c *Client) ListEmailIdentities(request *ListEmailIdentitiesRequest) (response *ListEmailIdentitiesResponse, err error)
ListEmailIdentities This API is used to get the list of sender domains, including verified and unverified domains.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListEmailIdentitiesWithContext ¶
func (c *Client) ListEmailIdentitiesWithContext(ctx context.Context, request *ListEmailIdentitiesRequest) (response *ListEmailIdentitiesResponse, err error)
ListEmailIdentities This API is used to get the list of sender domains, including verified and unverified domains.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListEmailTemplates ¶
func (c *Client) ListEmailTemplates(request *ListEmailTemplatesRequest) (response *ListEmailTemplatesResponse, err error)
ListEmailTemplates This API is used to get the list of email templates.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListEmailTemplatesWithContext ¶
func (c *Client) ListEmailTemplatesWithContext(ctx context.Context, request *ListEmailTemplatesRequest) (response *ListEmailTemplatesResponse, err error)
ListEmailTemplates This API is used to get the list of email templates.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) ListReceivers ¶
func (c *Client) ListReceivers(request *ListReceiversRequest) (response *ListReceiversResponse, err error)
ListReceivers This API is used to query recipient groups. It supports pagination, fuzzy query, and query by status.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit" INTERNALERROR = "InternalError"
func (*Client) ListReceiversWithContext ¶
func (c *Client) ListReceiversWithContext(ctx context.Context, request *ListReceiversRequest) (response *ListReceiversResponse, err error)
ListReceivers This API is used to query recipient groups. It supports pagination, fuzzy query, and query by status.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit" INTERNALERROR = "InternalError"
func (*Client) ListSendTasks ¶
func (c *Client) ListSendTasks(request *ListSendTasksRequest) (response *ListSendTasksResponse, err error)
ListSendTasks This API is used to query batch email sending tasks (including immediate, scheduled, and recurring tasks) by page. You can query task data including the number of emails requested to be sent, the number of sent emails, the number of cached emails, and task status.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit"
func (*Client) ListSendTasksWithContext ¶
func (c *Client) ListSendTasksWithContext(ctx context.Context, request *ListSendTasksRequest) (response *ListSendTasksResponse, err error)
ListSendTasks This API is used to query batch email sending tasks (including immediate, scheduled, and recurring tasks) by page. You can query task data including the number of emails requested to be sent, the number of sent emails, the number of cached emails, and task status.
error code that may be returned:
FAILEDOPERATION_INVALIDLIMIT = "FailedOperation.InvalidLimit"
func (*Client) SendEmail ¶
func (c *Client) SendEmail(request *SendEmailRequest) (response *SendEmailResponse, err error)
SendEmail This API is used to send a TEXT or HTML email triggered for authentication or transaction. By default, you can send emails using a template only. To send custom content, please contact your sales rep to enable this feature.
error code that may be returned:
FAILEDOPERATION_ATTACHCONTENTTOOLARGE = "FailedOperation.AttachContentToolarge" FAILEDOPERATION_EMAILADDRINBLACKLIST = "FailedOperation.EmailAddrInBlacklist" FAILEDOPERATION_EMAILCONTENTTOOLARGE = "FailedOperation.EmailContentToolarge" FAILEDOPERATION_EXCEEDSENDLIMIT = "FailedOperation.ExceedSendLimit" FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" FAILEDOPERATION_HIGHREJECTIONRATE = "FailedOperation.HighRejectionRate" FAILEDOPERATION_INCORRECTEMAIL = "FailedOperation.IncorrectEmail" FAILEDOPERATION_INCORRECTSENDER = "FailedOperation.IncorrectSender" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_INSUFFICIENTQUOTA = "FailedOperation.InsufficientQuota" FAILEDOPERATION_INVALIDATTACHNAME = "FailedOperation.InvalidAttachName" FAILEDOPERATION_INVALIDTEMPLATEID = "FailedOperation.InvalidTemplateID" FAILEDOPERATION_MISSINGEMAILCONTENT = "FailedOperation.MissingEmailContent" FAILEDOPERATION_NOATTACHPERMISSION = "FailedOperation.NoAttachPermission" FAILEDOPERATION_NOTAUTHENTICATEDSENDER = "FailedOperation.NotAuthenticatedSender" FAILEDOPERATION_PROTOCOLCHECKERR = "FailedOperation.ProtocolCheckErr" FAILEDOPERATION_RECEIVERHASUNSUBSCRIBED = "FailedOperation.ReceiverHasUnsubscribed" FAILEDOPERATION_SENDEMAILERR = "FailedOperation.SendEmailErr" FAILEDOPERATION_TEMPORARYBLOCKED = "FailedOperation.TemporaryBlocked" FAILEDOPERATION_TOOMANYATTACHMENTS = "FailedOperation.TooManyAttachments" FAILEDOPERATION_TOOMANYRECIPIENTS = "FailedOperation.TooManyRecipients" FAILEDOPERATION_UNSUPPORTMAILTYPE = "FailedOperation.UnsupportMailType" FAILEDOPERATION_WITHOUTPERMISSION = "FailedOperation.WithOutPermission" FAILEDOPERATION_WRONGCONTENTJSON = "FailedOperation.WrongContentJson" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ATTACHCONTENTISWRONG = "InvalidParameterValue.AttachContentIsWrong" INVALIDPARAMETERVALUE_EMAILADDRESSISNULL = "InvalidParameterValue.EmailAddressIsNULL" INVALIDPARAMETERVALUE_EMAILCONTENTISWRONG = "InvalidParameterValue.EmailContentIsWrong" INVALIDPARAMETERVALUE_INVALIDEMAILIDENTITY = "InvalidParameterValue.InvalidEmailIdentity" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) SendEmailWithContext ¶
func (c *Client) SendEmailWithContext(ctx context.Context, request *SendEmailRequest) (response *SendEmailResponse, err error)
SendEmail This API is used to send a TEXT or HTML email triggered for authentication or transaction. By default, you can send emails using a template only. To send custom content, please contact your sales rep to enable this feature.
error code that may be returned:
FAILEDOPERATION_ATTACHCONTENTTOOLARGE = "FailedOperation.AttachContentToolarge" FAILEDOPERATION_EMAILADDRINBLACKLIST = "FailedOperation.EmailAddrInBlacklist" FAILEDOPERATION_EMAILCONTENTTOOLARGE = "FailedOperation.EmailContentToolarge" FAILEDOPERATION_EXCEEDSENDLIMIT = "FailedOperation.ExceedSendLimit" FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" FAILEDOPERATION_HIGHREJECTIONRATE = "FailedOperation.HighRejectionRate" FAILEDOPERATION_INCORRECTEMAIL = "FailedOperation.IncorrectEmail" FAILEDOPERATION_INCORRECTSENDER = "FailedOperation.IncorrectSender" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_INSUFFICIENTQUOTA = "FailedOperation.InsufficientQuota" FAILEDOPERATION_INVALIDATTACHNAME = "FailedOperation.InvalidAttachName" FAILEDOPERATION_INVALIDTEMPLATEID = "FailedOperation.InvalidTemplateID" FAILEDOPERATION_MISSINGEMAILCONTENT = "FailedOperation.MissingEmailContent" FAILEDOPERATION_NOATTACHPERMISSION = "FailedOperation.NoAttachPermission" FAILEDOPERATION_NOTAUTHENTICATEDSENDER = "FailedOperation.NotAuthenticatedSender" FAILEDOPERATION_PROTOCOLCHECKERR = "FailedOperation.ProtocolCheckErr" FAILEDOPERATION_RECEIVERHASUNSUBSCRIBED = "FailedOperation.ReceiverHasUnsubscribed" FAILEDOPERATION_SENDEMAILERR = "FailedOperation.SendEmailErr" FAILEDOPERATION_TEMPORARYBLOCKED = "FailedOperation.TemporaryBlocked" FAILEDOPERATION_TOOMANYATTACHMENTS = "FailedOperation.TooManyAttachments" FAILEDOPERATION_TOOMANYRECIPIENTS = "FailedOperation.TooManyRecipients" FAILEDOPERATION_UNSUPPORTMAILTYPE = "FailedOperation.UnsupportMailType" FAILEDOPERATION_WITHOUTPERMISSION = "FailedOperation.WithOutPermission" FAILEDOPERATION_WRONGCONTENTJSON = "FailedOperation.WrongContentJson" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ATTACHCONTENTISWRONG = "InvalidParameterValue.AttachContentIsWrong" INVALIDPARAMETERVALUE_EMAILADDRESSISNULL = "InvalidParameterValue.EmailAddressIsNULL" INVALIDPARAMETERVALUE_EMAILCONTENTISWRONG = "InvalidParameterValue.EmailContentIsWrong" INVALIDPARAMETERVALUE_INVALIDEMAILIDENTITY = "InvalidParameterValue.InvalidEmailIdentity" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) UpdateEmailIdentity ¶
func (c *Client) UpdateEmailIdentity(request *UpdateEmailIdentityRequest) (response *UpdateEmailIdentityResponse, err error)
UpdateEmailIdentity This API is used to verify whether your DNS configuration is correct.
error code that may be returned:
FAILEDOPERATION_SERVICENOTAVAILABLE = "FailedOperation.ServiceNotAvailable" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOTEXISTDOMAIN = "InvalidParameterValue.NotExistDomain" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
func (*Client) UpdateEmailIdentityWithContext ¶
func (c *Client) UpdateEmailIdentityWithContext(ctx context.Context, request *UpdateEmailIdentityRequest) (response *UpdateEmailIdentityResponse, err error)
UpdateEmailIdentity This API is used to verify whether your DNS configuration is correct.
error code that may be returned:
FAILEDOPERATION_SERVICENOTAVAILABLE = "FailedOperation.ServiceNotAvailable" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOTEXISTDOMAIN = "InvalidParameterValue.NotExistDomain" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
type CreateEmailAddressRequest ¶
type CreateEmailAddressRequest struct { *tchttp.BaseRequest // Your sender address. (You can create up to 10 sender addresses for each domain.) EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` // Sender name. EmailSenderName *string `json:"EmailSenderName,omitempty" name:"EmailSenderName"` }
func NewCreateEmailAddressRequest ¶
func NewCreateEmailAddressRequest() (request *CreateEmailAddressRequest)
func (*CreateEmailAddressRequest) FromJsonString ¶
func (r *CreateEmailAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEmailAddressRequest) ToJsonString ¶
func (r *CreateEmailAddressRequest) ToJsonString() string
type CreateEmailAddressResponse ¶
type CreateEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateEmailAddressResponse ¶
func NewCreateEmailAddressResponse() (response *CreateEmailAddressResponse)
func (*CreateEmailAddressResponse) FromJsonString ¶
func (r *CreateEmailAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEmailAddressResponse) ToJsonString ¶
func (r *CreateEmailAddressResponse) ToJsonString() string
type CreateEmailIdentityRequest ¶
type CreateEmailIdentityRequest struct { *tchttp.BaseRequest // Your sender domain. You are advised to use a third-level domain, for example, mail.qcloud.com. EmailIdentity *string `json:"EmailIdentity,omitempty" name:"EmailIdentity"` }
func NewCreateEmailIdentityRequest ¶
func NewCreateEmailIdentityRequest() (request *CreateEmailIdentityRequest)
func (*CreateEmailIdentityRequest) FromJsonString ¶
func (r *CreateEmailIdentityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEmailIdentityRequest) ToJsonString ¶
func (r *CreateEmailIdentityRequest) ToJsonString() string
type CreateEmailIdentityResponse ¶
type CreateEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // Verification type. The value is fixed to `DOMAIN`. IdentityType *string `json:"IdentityType,omitempty" name:"IdentityType"` // Verification passed or not. VerifiedForSendingStatus *bool `json:"VerifiedForSendingStatus,omitempty" name:"VerifiedForSendingStatus"` // DNS information that needs to be configured. Attributes []*DNSAttributes `json:"Attributes,omitempty" name:"Attributes"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateEmailIdentityResponse ¶
func NewCreateEmailIdentityResponse() (response *CreateEmailIdentityResponse)
func (*CreateEmailIdentityResponse) FromJsonString ¶
func (r *CreateEmailIdentityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEmailIdentityResponse) ToJsonString ¶
func (r *CreateEmailIdentityResponse) ToJsonString() string
type CreateReceiverDetailRequest ¶
type CreateReceiverDetailRequest struct { *tchttp.BaseRequest // Recipient group ID ReceiverId *uint64 `json:"ReceiverId,omitempty" name:"ReceiverId"` // Email address Emails []*string `json:"Emails,omitempty" name:"Emails"` }
func NewCreateReceiverDetailRequest ¶
func NewCreateReceiverDetailRequest() (request *CreateReceiverDetailRequest)
func (*CreateReceiverDetailRequest) FromJsonString ¶
func (r *CreateReceiverDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReceiverDetailRequest) ToJsonString ¶
func (r *CreateReceiverDetailRequest) ToJsonString() string
type CreateReceiverDetailResponse ¶
type CreateReceiverDetailResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateReceiverDetailResponse ¶
func NewCreateReceiverDetailResponse() (response *CreateReceiverDetailResponse)
func (*CreateReceiverDetailResponse) FromJsonString ¶
func (r *CreateReceiverDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReceiverDetailResponse) ToJsonString ¶
func (r *CreateReceiverDetailResponse) ToJsonString() string
type CreateReceiverRequest ¶
type CreateReceiverRequest struct { *tchttp.BaseRequest // Recipient group name ReceiversName *string `json:"ReceiversName,omitempty" name:"ReceiversName"` // Recipient group description Desc *string `json:"Desc,omitempty" name:"Desc"` }
func NewCreateReceiverRequest ¶
func NewCreateReceiverRequest() (request *CreateReceiverRequest)
func (*CreateReceiverRequest) FromJsonString ¶
func (r *CreateReceiverRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReceiverRequest) ToJsonString ¶
func (r *CreateReceiverRequest) ToJsonString() string
type CreateReceiverResponse ¶
type CreateReceiverResponse struct { *tchttp.BaseResponse Response *struct { // Recipient group ID, by which recipient email addresses are uploaded ReceiverId *uint64 `json:"ReceiverId,omitempty" name:"ReceiverId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateReceiverResponse ¶
func NewCreateReceiverResponse() (response *CreateReceiverResponse)
func (*CreateReceiverResponse) FromJsonString ¶
func (r *CreateReceiverResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReceiverResponse) ToJsonString ¶
func (r *CreateReceiverResponse) ToJsonString() string
type CycleEmailParam ¶
type DNSAttributes ¶
type DNSAttributes struct { // Record types: CNAME, A, TXT, and MX. Type *string `json:"Type,omitempty" name:"Type"` // Domain name. SendDomain *string `json:"SendDomain,omitempty" name:"SendDomain"` // Expected value. ExpectedValue *string `json:"ExpectedValue,omitempty" name:"ExpectedValue"` // Currently configured value. CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` // Approved or not. The default value is `false`. Status *bool `json:"Status,omitempty" name:"Status"` }
type DeleteBlackListRequest ¶
type DeleteBlackListRequest struct { *tchttp.BaseRequest // List of email addresses to be unblocklisted. Enter at least one address. EmailAddressList []*string `json:"EmailAddressList,omitempty" name:"EmailAddressList"` }
func NewDeleteBlackListRequest ¶
func NewDeleteBlackListRequest() (request *DeleteBlackListRequest)
func (*DeleteBlackListRequest) FromJsonString ¶
func (r *DeleteBlackListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteBlackListRequest) ToJsonString ¶
func (r *DeleteBlackListRequest) ToJsonString() string
type DeleteBlackListResponse ¶
type DeleteBlackListResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteBlackListResponse ¶
func NewDeleteBlackListResponse() (response *DeleteBlackListResponse)
func (*DeleteBlackListResponse) FromJsonString ¶
func (r *DeleteBlackListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteBlackListResponse) ToJsonString ¶
func (r *DeleteBlackListResponse) ToJsonString() string
type DeleteEmailAddressRequest ¶
type DeleteEmailAddressRequest struct { *tchttp.BaseRequest // Sender address. EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` }
func NewDeleteEmailAddressRequest ¶
func NewDeleteEmailAddressRequest() (request *DeleteEmailAddressRequest)
func (*DeleteEmailAddressRequest) FromJsonString ¶
func (r *DeleteEmailAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEmailAddressRequest) ToJsonString ¶
func (r *DeleteEmailAddressRequest) ToJsonString() string
type DeleteEmailAddressResponse ¶
type DeleteEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteEmailAddressResponse ¶
func NewDeleteEmailAddressResponse() (response *DeleteEmailAddressResponse)
func (*DeleteEmailAddressResponse) FromJsonString ¶
func (r *DeleteEmailAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEmailAddressResponse) ToJsonString ¶
func (r *DeleteEmailAddressResponse) ToJsonString() string
type DeleteEmailIdentityRequest ¶
type DeleteEmailIdentityRequest struct { *tchttp.BaseRequest // Sender domain. EmailIdentity *string `json:"EmailIdentity,omitempty" name:"EmailIdentity"` }
func NewDeleteEmailIdentityRequest ¶
func NewDeleteEmailIdentityRequest() (request *DeleteEmailIdentityRequest)
func (*DeleteEmailIdentityRequest) FromJsonString ¶
func (r *DeleteEmailIdentityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEmailIdentityRequest) ToJsonString ¶
func (r *DeleteEmailIdentityRequest) ToJsonString() string
type DeleteEmailIdentityResponse ¶
type DeleteEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteEmailIdentityResponse ¶
func NewDeleteEmailIdentityResponse() (response *DeleteEmailIdentityResponse)
func (*DeleteEmailIdentityResponse) FromJsonString ¶
func (r *DeleteEmailIdentityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEmailIdentityResponse) ToJsonString ¶
func (r *DeleteEmailIdentityResponse) ToJsonString() string
type DeleteEmailTemplateRequest ¶
type DeleteEmailTemplateRequest struct { *tchttp.BaseRequest // Template ID TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` }
func NewDeleteEmailTemplateRequest ¶
func NewDeleteEmailTemplateRequest() (request *DeleteEmailTemplateRequest)
func (*DeleteEmailTemplateRequest) FromJsonString ¶
func (r *DeleteEmailTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEmailTemplateRequest) ToJsonString ¶
func (r *DeleteEmailTemplateRequest) ToJsonString() string
type DeleteEmailTemplateResponse ¶
type DeleteEmailTemplateResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteEmailTemplateResponse ¶
func NewDeleteEmailTemplateResponse() (response *DeleteEmailTemplateResponse)
func (*DeleteEmailTemplateResponse) FromJsonString ¶
func (r *DeleteEmailTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEmailTemplateResponse) ToJsonString ¶
func (r *DeleteEmailTemplateResponse) ToJsonString() string
type DeleteReceiverRequest ¶
type DeleteReceiverRequest struct { *tchttp.BaseRequest // Recipient group ID, which is returned when a recipient group is created. ReceiverId *uint64 `json:"ReceiverId,omitempty" name:"ReceiverId"` }
func NewDeleteReceiverRequest ¶
func NewDeleteReceiverRequest() (request *DeleteReceiverRequest)
func (*DeleteReceiverRequest) FromJsonString ¶
func (r *DeleteReceiverRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteReceiverRequest) ToJsonString ¶
func (r *DeleteReceiverRequest) ToJsonString() string
type DeleteReceiverResponse ¶
type DeleteReceiverResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteReceiverResponse ¶
func NewDeleteReceiverResponse() (response *DeleteReceiverResponse)
func (*DeleteReceiverResponse) FromJsonString ¶
func (r *DeleteReceiverResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteReceiverResponse) ToJsonString ¶
func (r *DeleteReceiverResponse) ToJsonString() string
type EmailIdentity ¶
type EmailIdentity struct { // Sender domain. IdentityName *string `json:"IdentityName,omitempty" name:"IdentityName"` // Verification type. The value is fixed to `DOMAIN`. IdentityType *string `json:"IdentityType,omitempty" name:"IdentityType"` // Verification passed or not. SendingEnabled *bool `json:"SendingEnabled,omitempty" name:"SendingEnabled"` }
type EmailSender ¶
type EmailSender struct { // Sender address. EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` // Sender name. // Note: this field may return `null`, indicating that no valid values can be obtained. EmailSenderName *string `json:"EmailSenderName,omitempty" name:"EmailSenderName"` // Creation time. // Note: this field may return `null`, indicating that no valid values can be obtained. CreatedTimestamp *uint64 `json:"CreatedTimestamp,omitempty" name:"CreatedTimestamp"` }
type GetEmailIdentityRequest ¶
type GetEmailIdentityRequest struct { *tchttp.BaseRequest // Sender domain. EmailIdentity *string `json:"EmailIdentity,omitempty" name:"EmailIdentity"` }
func NewGetEmailIdentityRequest ¶
func NewGetEmailIdentityRequest() (request *GetEmailIdentityRequest)
func (*GetEmailIdentityRequest) FromJsonString ¶
func (r *GetEmailIdentityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEmailIdentityRequest) ToJsonString ¶
func (r *GetEmailIdentityRequest) ToJsonString() string
type GetEmailIdentityResponse ¶
type GetEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // Verification type. The value is fixed to `DOMAIN`. IdentityType *string `json:"IdentityType,omitempty" name:"IdentityType"` // Verification passed or not. VerifiedForSendingStatus *bool `json:"VerifiedForSendingStatus,omitempty" name:"VerifiedForSendingStatus"` // DNS configuration details. Attributes []*DNSAttributes `json:"Attributes,omitempty" name:"Attributes"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetEmailIdentityResponse ¶
func NewGetEmailIdentityResponse() (response *GetEmailIdentityResponse)
func (*GetEmailIdentityResponse) FromJsonString ¶
func (r *GetEmailIdentityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEmailIdentityResponse) ToJsonString ¶
func (r *GetEmailIdentityResponse) ToJsonString() string
type GetEmailTemplateRequest ¶
type GetEmailTemplateRequest struct { *tchttp.BaseRequest // Template ID. TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` }
func NewGetEmailTemplateRequest ¶
func NewGetEmailTemplateRequest() (request *GetEmailTemplateRequest)
func (*GetEmailTemplateRequest) FromJsonString ¶
func (r *GetEmailTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEmailTemplateRequest) ToJsonString ¶
func (r *GetEmailTemplateRequest) ToJsonString() string
type GetEmailTemplateResponse ¶
type GetEmailTemplateResponse struct { *tchttp.BaseResponse Response *struct { // Template content. TemplateContent *TemplateContent `json:"TemplateContent,omitempty" name:"TemplateContent"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetEmailTemplateResponse ¶
func NewGetEmailTemplateResponse() (response *GetEmailTemplateResponse)
func (*GetEmailTemplateResponse) FromJsonString ¶
func (r *GetEmailTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEmailTemplateResponse) ToJsonString ¶
func (r *GetEmailTemplateResponse) ToJsonString() string
type GetStatisticsReportRequest ¶
type GetStatisticsReportRequest struct { *tchttp.BaseRequest // Start date. StartDate *string `json:"StartDate,omitempty" name:"StartDate"` // End date. EndDate *string `json:"EndDate,omitempty" name:"EndDate"` // Sender domain. Domain *string `json:"Domain,omitempty" name:"Domain"` // Recipient address type, for example, gmail.com. ReceivingMailboxType *string `json:"ReceivingMailboxType,omitempty" name:"ReceivingMailboxType"` }
func NewGetStatisticsReportRequest ¶
func NewGetStatisticsReportRequest() (request *GetStatisticsReportRequest)
func (*GetStatisticsReportRequest) FromJsonString ¶
func (r *GetStatisticsReportRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetStatisticsReportRequest) ToJsonString ¶
func (r *GetStatisticsReportRequest) ToJsonString() string
type GetStatisticsReportResponse ¶
type GetStatisticsReportResponse struct { *tchttp.BaseResponse Response *struct { // Daily email sending statistics. DailyVolumes []*Volume `json:"DailyVolumes,omitempty" name:"DailyVolumes"` // Overall email sending statistics. OverallVolume *Volume `json:"OverallVolume,omitempty" name:"OverallVolume"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetStatisticsReportResponse ¶
func NewGetStatisticsReportResponse() (response *GetStatisticsReportResponse)
func (*GetStatisticsReportResponse) FromJsonString ¶
func (r *GetStatisticsReportResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetStatisticsReportResponse) ToJsonString ¶
func (r *GetStatisticsReportResponse) ToJsonString() string
type ListBlackEmailAddressRequest ¶
type ListBlackEmailAddressRequest struct { *tchttp.BaseRequest // Start date in the format of `YYYY-MM-DD` StartDate *string `json:"StartDate,omitempty" name:"StartDate"` // End date in the format of `YYYY-MM-DD` EndDate *string `json:"EndDate,omitempty" name:"EndDate"` // Common parameter. It must be used with `Offset`. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Common parameter. It must be used with `Limit`. Maximum value of `Limit`: `100`. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // You can specify an email address to query. EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` // You can specify a task ID to query. TaskID *string `json:"TaskID,omitempty" name:"TaskID"` }
func NewListBlackEmailAddressRequest ¶
func NewListBlackEmailAddressRequest() (request *ListBlackEmailAddressRequest)
func (*ListBlackEmailAddressRequest) FromJsonString ¶
func (r *ListBlackEmailAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListBlackEmailAddressRequest) ToJsonString ¶
func (r *ListBlackEmailAddressRequest) ToJsonString() string
type ListBlackEmailAddressResponse ¶
type ListBlackEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // List of blocklisted addresses. BlackList []*BlackEmailAddress `json:"BlackList,omitempty" name:"BlackList"` // Total number of blocklisted addresses. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListBlackEmailAddressResponse ¶
func NewListBlackEmailAddressResponse() (response *ListBlackEmailAddressResponse)
func (*ListBlackEmailAddressResponse) FromJsonString ¶
func (r *ListBlackEmailAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListBlackEmailAddressResponse) ToJsonString ¶
func (r *ListBlackEmailAddressResponse) ToJsonString() string
type ListEmailAddressRequest ¶
type ListEmailAddressRequest struct {
*tchttp.BaseRequest
}
func NewListEmailAddressRequest ¶
func NewListEmailAddressRequest() (request *ListEmailAddressRequest)
func (*ListEmailAddressRequest) FromJsonString ¶
func (r *ListEmailAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEmailAddressRequest) ToJsonString ¶
func (r *ListEmailAddressRequest) ToJsonString() string
type ListEmailAddressResponse ¶
type ListEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // Details of sender addresses. // Note: this field may return `null`, indicating that no valid values can be obtained. EmailSenders []*EmailSender `json:"EmailSenders,omitempty" name:"EmailSenders"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListEmailAddressResponse ¶
func NewListEmailAddressResponse() (response *ListEmailAddressResponse)
func (*ListEmailAddressResponse) FromJsonString ¶
func (r *ListEmailAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEmailAddressResponse) ToJsonString ¶
func (r *ListEmailAddressResponse) ToJsonString() string
type ListEmailIdentitiesRequest ¶
type ListEmailIdentitiesRequest struct {
*tchttp.BaseRequest
}
func NewListEmailIdentitiesRequest ¶
func NewListEmailIdentitiesRequest() (request *ListEmailIdentitiesRequest)
func (*ListEmailIdentitiesRequest) FromJsonString ¶
func (r *ListEmailIdentitiesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEmailIdentitiesRequest) ToJsonString ¶
func (r *ListEmailIdentitiesRequest) ToJsonString() string
type ListEmailIdentitiesResponse ¶
type ListEmailIdentitiesResponse struct { *tchttp.BaseResponse Response *struct { // List of sender domains. EmailIdentities []*EmailIdentity `json:"EmailIdentities,omitempty" name:"EmailIdentities"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListEmailIdentitiesResponse ¶
func NewListEmailIdentitiesResponse() (response *ListEmailIdentitiesResponse)
func (*ListEmailIdentitiesResponse) FromJsonString ¶
func (r *ListEmailIdentitiesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEmailIdentitiesResponse) ToJsonString ¶
func (r *ListEmailIdentitiesResponse) ToJsonString() string
type ListEmailTemplatesRequest ¶
type ListEmailTemplatesRequest struct { *tchttp.BaseRequest // Number of templates to get. This parameter is used for pagination. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Template offset to get. This parameter is used for pagination. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewListEmailTemplatesRequest ¶
func NewListEmailTemplatesRequest() (request *ListEmailTemplatesRequest)
func (*ListEmailTemplatesRequest) FromJsonString ¶
func (r *ListEmailTemplatesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEmailTemplatesRequest) ToJsonString ¶
func (r *ListEmailTemplatesRequest) ToJsonString() string
type ListEmailTemplatesResponse ¶
type ListEmailTemplatesResponse struct { *tchttp.BaseResponse Response *struct { // List of email templates. TemplatesMetadata []*TemplatesMetadata `json:"TemplatesMetadata,omitempty" name:"TemplatesMetadata"` // Total number of templates. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListEmailTemplatesResponse ¶
func NewListEmailTemplatesResponse() (response *ListEmailTemplatesResponse)
func (*ListEmailTemplatesResponse) FromJsonString ¶
func (r *ListEmailTemplatesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEmailTemplatesResponse) ToJsonString ¶
func (r *ListEmailTemplatesResponse) ToJsonString() string
type ListReceiversRequest ¶
type ListReceiversRequest struct { *tchttp.BaseRequest // Offset, starting from 0. The value is an integer. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of records to query. The value is an integer not exceeding 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Group status (`1`: to be uploaded; `2` uploading; `3` uploaded). To query groups in all states, do not pass in this parameter. Status *uint64 `json:"Status,omitempty" name:"Status"` // Group name keyword for fuzzy query KeyWord *string `json:"KeyWord,omitempty" name:"KeyWord"` }
func NewListReceiversRequest ¶
func NewListReceiversRequest() (request *ListReceiversRequest)
func (*ListReceiversRequest) FromJsonString ¶
func (r *ListReceiversRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListReceiversRequest) ToJsonString ¶
func (r *ListReceiversRequest) ToJsonString() string
type ListReceiversResponse ¶
type ListReceiversResponse struct { *tchttp.BaseResponse Response *struct { // Total number TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data record Data []*ReceiverData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListReceiversResponse ¶
func NewListReceiversResponse() (response *ListReceiversResponse)
func (*ListReceiversResponse) FromJsonString ¶
func (r *ListReceiversResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListReceiversResponse) ToJsonString ¶
func (r *ListReceiversResponse) ToJsonString() string
type ListSendTasksRequest ¶
type ListSendTasksRequest struct { *tchttp.BaseRequest // Offset, starting from 0. The value is an integer. `0` means to skip 0 entries. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of records to query. The value is an integer not exceeding 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Task status. `1`: to start; `5`: sending; `6`: sending suspended today; `7`: sending error; `10`: sent. To query tasks in all states, do not pass in this parameter. Status *uint64 `json:"Status,omitempty" name:"Status"` // Recipient group ID ReceiverId *uint64 `json:"ReceiverId,omitempty" name:"ReceiverId"` // Task type. `1`: immediate; `2`: scheduled; `3`: recurring. To query tasks of all types, do not pass in this parameter. TaskType *uint64 `json:"TaskType,omitempty" name:"TaskType"` }
func NewListSendTasksRequest ¶
func NewListSendTasksRequest() (request *ListSendTasksRequest)
func (*ListSendTasksRequest) FromJsonString ¶
func (r *ListSendTasksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListSendTasksRequest) ToJsonString ¶
func (r *ListSendTasksRequest) ToJsonString() string
type ListSendTasksResponse ¶
type ListSendTasksResponse struct { *tchttp.BaseResponse Response *struct { // Total number TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Data record Data []*SendTaskData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListSendTasksResponse ¶
func NewListSendTasksResponse() (response *ListSendTasksResponse)
func (*ListSendTasksResponse) FromJsonString ¶
func (r *ListSendTasksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListSendTasksResponse) ToJsonString ¶
func (r *ListSendTasksResponse) ToJsonString() string
type ReceiverData ¶
type ReceiverData struct { // Recipient group ID ReceiverId *uint64 `json:"ReceiverId,omitempty" name:"ReceiverId"` // Recipient group name ReceiversName *string `json:"ReceiversName,omitempty" name:"ReceiversName"` // Total number of recipient email addresses Count *uint64 `json:"Count,omitempty" name:"Count"` // Recipient group description // Note: This field may return `null`, indicating that no valid value can be found. Desc *string `json:"Desc,omitempty" name:"Desc"` // Group status (`1`: to be uploaded; `2` uploading; `3` uploaded) // Note: This field may return `null`, indicating that no valid value can be found. ReceiversStatus *uint64 `json:"ReceiversStatus,omitempty" name:"ReceiversStatus"` // Creation time, such as 2021-09-28 16:40:35 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }
type SendEmailRequest ¶
type SendEmailRequest struct { *tchttp.BaseRequest // Sender address. Enter a sender address, for example, noreply@mail.qcloud.com. // To display the sender name, enter the address in the following format: // Sender <email address> FromEmailAddress *string `json:"FromEmailAddress,omitempty" name:"FromEmailAddress"` // Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails. Destination []*string `json:"Destination,omitempty" name:"Destination"` // Email subject. Subject *string `json:"Subject,omitempty" name:"Subject"` // Reply-to address. You can enter a valid personal email address that can receive emails. If this field is left empty, reply emails will be sent to Tencent Cloud. ReplyToAddresses *string `json:"ReplyToAddresses,omitempty" name:"ReplyToAddresses"` // Template when sending emails using a template. Template *Template `json:"Template,omitempty" name:"Template"` // Email content when sending emails by calling the API. Simple *Simple `json:"Simple,omitempty" name:"Simple"` // Email attachments Attachments []*Attachment `json:"Attachments,omitempty" name:"Attachments"` // Unsubscribe option. `1`: provides an unsubscribe link; `0`: does not provide an unsubscribe link Unsubscribe *string `json:"Unsubscribe,omitempty" name:"Unsubscribe"` // Email triggering type. `0` (default): non-trigger-based, suitable for marketing emails and non-immediate emails; `1`: trigger-based, suitable for immediate emails such as emails containing verification codes. If the size of an email exceeds a specified value, the system will automatically choose the non-trigger-based type. TriggerType *uint64 `json:"TriggerType,omitempty" name:"TriggerType"` }
func NewSendEmailRequest ¶
func NewSendEmailRequest() (request *SendEmailRequest)
func (*SendEmailRequest) FromJsonString ¶
func (r *SendEmailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendEmailRequest) ToJsonString ¶
func (r *SendEmailRequest) ToJsonString() string
type SendEmailResponse ¶
type SendEmailResponse struct { *tchttp.BaseResponse Response *struct { // Unique ID generated when receiving the message MessageId *string `json:"MessageId,omitempty" name:"MessageId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSendEmailResponse ¶
func NewSendEmailResponse() (response *SendEmailResponse)
func (*SendEmailResponse) FromJsonString ¶
func (r *SendEmailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendEmailResponse) ToJsonString ¶
func (r *SendEmailResponse) ToJsonString() string
type SendTaskData ¶
type SendTaskData struct { // Task ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // Sender address FromEmailAddress *string `json:"FromEmailAddress,omitempty" name:"FromEmailAddress"` // Recipient group ID ReceiverId *uint64 `json:"ReceiverId,omitempty" name:"ReceiverId"` // Task status. `1`: to start; `5`: sending; `6`: sending suspended today; `7`: sending error; `10`: sent TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // Task type. `1`: immediate; `2`: scheduled; `3`: recurring TaskType *uint64 `json:"TaskType,omitempty" name:"TaskType"` // Number of emails requested to be sent RequestCount *uint64 `json:"RequestCount,omitempty" name:"RequestCount"` // Number of emails sent SendCount *uint64 `json:"SendCount,omitempty" name:"SendCount"` // Number of emails cached CacheCount *uint64 `json:"CacheCount,omitempty" name:"CacheCount"` // Task creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Task update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Email subject Subject *string `json:"Subject,omitempty" name:"Subject"` // Template and template data // Note: This field may return `null`, indicating that no valid value can be found. Template *Template `json:"Template,omitempty" name:"Template"` // Parameters of a recurring task // Note: This field may return `null`, indicating that no valid value can be found. CycleParam *CycleEmailParam `json:"CycleParam,omitempty" name:"CycleParam"` // Parameters of a scheduled task // Note: This field may return `null`, indicating that no valid value can be found. TimedParam *TimedEmailParam `json:"TimedParam,omitempty" name:"TimedParam"` // Task exception information // Note: This field may return `null`, indicating that no valid value can be found. ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` // Recipient group name ReceiversName *string `json:"ReceiversName,omitempty" name:"ReceiversName"` }
type Simple ¶
type Simple struct { // HTML code after base64 encoding. To ensure correct display, this parameter should include all code information and cannot contain external CSS. Html *string `json:"Html,omitempty" name:"Html"` // Plain text content after base64 encoding. If HTML is not involved, the plain text will be displayed in the email. Otherwise, this parameter represents the plain text style of the email. Text *string `json:"Text,omitempty" name:"Text"` }
type Template ¶
type Template struct { // Template ID. If you don’t have any template, please create one. TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` // Variable parameters in the template. Please use `json.dump` to format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email. // Note: The parameter value cannot be data of a complex type such as HTML. // Example: {"name":"xxx","age":"xx"} TemplateData *string `json:"TemplateData,omitempty" name:"TemplateData"` }
type TemplateContent ¶
type TemplatesMetadata ¶
type TemplatesMetadata struct { // Creation time. CreatedTimestamp *uint64 `json:"CreatedTimestamp,omitempty" name:"CreatedTimestamp"` // Template name. TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // Template status. 1: under review; 0: approved; 2: rejected; other values: unavailable. TemplateStatus *int64 `json:"TemplateStatus,omitempty" name:"TemplateStatus"` // Template ID. TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` // Review reply ReviewReason *string `json:"ReviewReason,omitempty" name:"ReviewReason"` }
type TimedEmailParam ¶
type TimedEmailParam struct { // Start time of a scheduled sending task BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` }
type UpdateEmailIdentityRequest ¶
type UpdateEmailIdentityRequest struct { *tchttp.BaseRequest // Domain to be verified. EmailIdentity *string `json:"EmailIdentity,omitempty" name:"EmailIdentity"` }
func NewUpdateEmailIdentityRequest ¶
func NewUpdateEmailIdentityRequest() (request *UpdateEmailIdentityRequest)
func (*UpdateEmailIdentityRequest) FromJsonString ¶
func (r *UpdateEmailIdentityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateEmailIdentityRequest) ToJsonString ¶
func (r *UpdateEmailIdentityRequest) ToJsonString() string
type UpdateEmailIdentityResponse ¶
type UpdateEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // Verification type. The value is fixed to `DOMAIN`. IdentityType *string `json:"IdentityType,omitempty" name:"IdentityType"` // Verification passed or not. VerifiedForSendingStatus *bool `json:"VerifiedForSendingStatus,omitempty" name:"VerifiedForSendingStatus"` // DNS information that needs to be configured. Attributes []*DNSAttributes `json:"Attributes,omitempty" name:"Attributes"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateEmailIdentityResponse ¶
func NewUpdateEmailIdentityResponse() (response *UpdateEmailIdentityResponse)
func (*UpdateEmailIdentityResponse) FromJsonString ¶
func (r *UpdateEmailIdentityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateEmailIdentityResponse) ToJsonString ¶
func (r *UpdateEmailIdentityResponse) ToJsonString() string
type Volume ¶
type Volume struct { // Date // Note: this field may return `null`, indicating that no valid values can be obtained. SendDate *string `json:"SendDate,omitempty" name:"SendDate"` // Number of email requests. RequestCount *uint64 `json:"RequestCount,omitempty" name:"RequestCount"` // Number of email requests accepted by Tencent Cloud. AcceptedCount *uint64 `json:"AcceptedCount,omitempty" name:"AcceptedCount"` // Number of delivered emails. DeliveredCount *uint64 `json:"DeliveredCount,omitempty" name:"DeliveredCount"` // Number of users (deduplicated) who opened emails. OpenedCount *uint64 `json:"OpenedCount,omitempty" name:"OpenedCount"` // Number of recipients who clicked on links in emails. ClickedCount *uint64 `json:"ClickedCount,omitempty" name:"ClickedCount"` // Number of bounced emails. BounceCount *uint64 `json:"BounceCount,omitempty" name:"BounceCount"` // Number of users who canceled subscriptions. // Note: this field may return `null`, indicating that no valid values can be obtained. UnsubscribeCount *uint64 `json:"UnsubscribeCount,omitempty" name:"UnsubscribeCount"` }