Documentation
¶
Index ¶
- Constants
- type Attachment
- type BlackEmailAddress
- type Client
- func (c *Client) CreateEmailAddress(request *CreateEmailAddressRequest) (response *CreateEmailAddressResponse, err error)
- func (c *Client) CreateEmailIdentity(request *CreateEmailIdentityRequest) (response *CreateEmailIdentityResponse, err error)
- func (c *Client) CreateEmailTemplate(request *CreateEmailTemplateRequest) (response *CreateEmailTemplateResponse, err error)
- func (c *Client) DeleteBlackList(request *DeleteBlackListRequest) (response *DeleteBlackListResponse, err error)
- func (c *Client) DeleteEmailAddress(request *DeleteEmailAddressRequest) (response *DeleteEmailAddressResponse, err error)
- func (c *Client) DeleteEmailIdentity(request *DeleteEmailIdentityRequest) (response *DeleteEmailIdentityResponse, err error)
- func (c *Client) DeleteEmailTemplate(request *DeleteEmailTemplateRequest) (response *DeleteEmailTemplateResponse, err error)
- func (c *Client) GetEmailIdentity(request *GetEmailIdentityRequest) (response *GetEmailIdentityResponse, err error)
- func (c *Client) GetEmailTemplate(request *GetEmailTemplateRequest) (response *GetEmailTemplateResponse, err error)
- func (c *Client) GetSendEmailStatus(request *GetSendEmailStatusRequest) (response *GetSendEmailStatusResponse, err error)
- func (c *Client) GetStatisticsReport(request *GetStatisticsReportRequest) (response *GetStatisticsReportResponse, err error)
- func (c *Client) ListBlackEmailAddress(request *ListBlackEmailAddressRequest) (response *ListBlackEmailAddressResponse, err error)
- func (c *Client) ListEmailAddress(request *ListEmailAddressRequest) (response *ListEmailAddressResponse, err error)
- func (c *Client) ListEmailIdentities(request *ListEmailIdentitiesRequest) (response *ListEmailIdentitiesResponse, err error)
- func (c *Client) ListEmailTemplates(request *ListEmailTemplatesRequest) (response *ListEmailTemplatesResponse, err error)
- func (c *Client) SendEmail(request *SendEmailRequest) (response *SendEmailResponse, err error)
- func (c *Client) UpdateEmailIdentity(request *UpdateEmailIdentityRequest) (response *UpdateEmailIdentityResponse, err error)
- func (c *Client) UpdateEmailTemplate(request *UpdateEmailTemplateRequest) (response *UpdateEmailTemplateResponse, err error)
- type CreateEmailAddressRequest
- type CreateEmailAddressResponse
- type CreateEmailIdentityRequest
- type CreateEmailIdentityResponse
- type CreateEmailTemplateRequest
- type CreateEmailTemplateResponse
- type DNSAttributes
- type DeleteBlackListRequest
- type DeleteBlackListResponse
- type DeleteEmailAddressRequest
- type DeleteEmailAddressResponse
- type DeleteEmailIdentityRequest
- type DeleteEmailIdentityResponse
- type DeleteEmailTemplateRequest
- type DeleteEmailTemplateResponse
- type EmailIdentity
- type EmailSender
- type GetEmailIdentityRequest
- type GetEmailIdentityResponse
- type GetEmailTemplateRequest
- type GetEmailTemplateResponse
- type GetSendEmailStatusRequest
- type GetSendEmailStatusResponse
- type GetStatisticsReportRequest
- type GetStatisticsReportResponse
- type ListBlackEmailAddressRequest
- type ListBlackEmailAddressResponse
- type ListEmailAddressRequest
- type ListEmailAddressResponse
- type ListEmailIdentitiesRequest
- type ListEmailIdentitiesResponse
- type ListEmailTemplatesRequest
- type ListEmailTemplatesResponse
- type SendEmailRequest
- type SendEmailResponse
- type SendEmailStatus
- type Simple
- type Template
- type TemplateContent
- type TemplatesMetadata
- type UpdateEmailIdentityRequest
- type UpdateEmailIdentityResponse
- type UpdateEmailTemplateRequest
- type UpdateEmailTemplateResponse
- type Volume
Constants ¶
const APIVersion = "2020-10-02"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v1.0.86
type Attachment struct { // 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。 FileName *string `json:"FileName,omitempty" name:"FileName"` // base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。 Content *string `json:"Content,omitempty" name:"Content"` }
type BlackEmailAddress ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, 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)
在验证了发信域名之后,您需要一个发信地址来发送邮件。例如发信域名是mail.qcloud.com,那么发信地址可以为 service@mail.qcloud.com。如果您想要收件人在收件箱列表中显示您的别名,例如"腾讯云邮件通知"。那么发信地址为: 别名 空格 尖括号 邮箱地址。请注意中间需要有空格
func (*Client) CreateEmailIdentity ¶
func (c *Client) CreateEmailIdentity(request *CreateEmailIdentityRequest) (response *CreateEmailIdentityResponse, err error)
在使用身份发送电子邮件之前,您需要有一个电子邮件域名,该域名可以是您的网站或者移动应用的域名。您首先必须进行验证,证明自己是该域名的所有者,并且授权给腾讯云SES发送许可,才可以从该域名发送电子邮件。
func (*Client) CreateEmailTemplate ¶
func (c *Client) CreateEmailTemplate(request *CreateEmailTemplateRequest) (response *CreateEmailTemplateResponse, err error)
创建模板,该模板可以是TXT或者HTML,请注意如果HTML不要包含外部文件的CSS。模板中的变量使用 {{变量名}} 表示。 注意:模版需要审核通过才可以使用。
func (*Client) DeleteBlackList ¶
func (c *Client) DeleteBlackList(request *DeleteBlackListRequest) (response *DeleteBlackListResponse, err error)
邮箱被拉黑之后,用户如果确认收件邮箱有效或者已经处于激活状态,可以从腾讯云地址库中删除该黑名单之后继续投递。
func (*Client) DeleteEmailAddress ¶
func (c *Client) DeleteEmailAddress(request *DeleteEmailAddressRequest) (response *DeleteEmailAddressResponse, err error)
删除发信人地址
func (*Client) DeleteEmailIdentity ¶
func (c *Client) DeleteEmailIdentity(request *DeleteEmailIdentityRequest) (response *DeleteEmailIdentityResponse, err error)
删除发信域名,删除后,将不可再使用该域名进行发信
func (*Client) DeleteEmailTemplate ¶
func (c *Client) DeleteEmailTemplate(request *DeleteEmailTemplateRequest) (response *DeleteEmailTemplateResponse, err error)
删除发信模版
func (*Client) GetEmailIdentity ¶
func (c *Client) GetEmailIdentity(request *GetEmailIdentityRequest) (response *GetEmailIdentityResponse, err error)
获取某个发信域名的配置详情
func (*Client) GetEmailTemplate ¶
func (c *Client) GetEmailTemplate(request *GetEmailTemplateRequest) (response *GetEmailTemplateResponse, err error)
根据模板ID获取模板详情
func (*Client) GetSendEmailStatus ¶ added in v1.0.82
func (c *Client) GetSendEmailStatus(request *GetSendEmailStatusRequest) (response *GetSendEmailStatusResponse, err error)
获取邮件发送状态。仅支持查询90天之内的数据
func (*Client) GetStatisticsReport ¶
func (c *Client) GetStatisticsReport(request *GetStatisticsReportRequest) (response *GetStatisticsReportResponse, err error)
获取近期发送的统计情况,包含发送量、送达率、打开率、退信率等一系列数据。最大跨度为14天。
func (*Client) ListBlackEmailAddress ¶
func (c *Client) ListBlackEmailAddress(request *ListBlackEmailAddressRequest) (response *ListBlackEmailAddressResponse, err error)
腾讯云发送的邮件一旦被收件方判断为硬退(Hard Bounce),腾讯云会拉黑该地址,并不允许所有用户向该地址发送邮件。成为邮箱黑名单。如果业务方确认是误判,可以从黑名单中删除。
func (*Client) ListEmailAddress ¶
func (c *Client) ListEmailAddress(request *ListEmailAddressRequest) (response *ListEmailAddressResponse, err error)
获取发信地址列表
func (*Client) ListEmailIdentities ¶
func (c *Client) ListEmailIdentities(request *ListEmailIdentitiesRequest) (response *ListEmailIdentitiesResponse, err error)
获取当前发信域名列表,包含已验证通过与未验证的域名
func (*Client) ListEmailTemplates ¶
func (c *Client) ListEmailTemplates(request *ListEmailTemplatesRequest) (response *ListEmailTemplatesResponse, err error)
获取当前邮件模板列表
func (*Client) SendEmail ¶
func (c *Client) SendEmail(request *SendEmailRequest) (response *SendEmailResponse, err error)
您可以通过此API发送TEXT或者HTML邮件,默认仅支持使用模板发送邮件,如需发送自定义内容,请单独联系商务开通此功能。
func (*Client) UpdateEmailIdentity ¶
func (c *Client) UpdateEmailIdentity(request *UpdateEmailIdentityRequest) (response *UpdateEmailIdentityResponse, err error)
您已经成功配置好了您的DNS,接下来请求腾讯云验证您的DNS配置是否正确
func (*Client) UpdateEmailTemplate ¶
func (c *Client) UpdateEmailTemplate(request *UpdateEmailTemplateRequest) (response *UpdateEmailTemplateResponse, err error)
更新邮件模板,更新后需再次审核
type CreateEmailAddressRequest ¶
type CreateEmailAddressRequest struct { *tchttp.BaseRequest // 您的发信地址(发信地址总数上限为10个) EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` // 发件人别名 EmailSenderName *string `json:"EmailSenderName,omitempty" name:"EmailSenderName"` }
func NewCreateEmailAddressRequest ¶
func NewCreateEmailAddressRequest() (request *CreateEmailAddressRequest)
func (*CreateEmailAddressRequest) FromJsonString ¶
func (r *CreateEmailAddressRequest) FromJsonString(s string) error
func (*CreateEmailAddressRequest) ToJsonString ¶
func (r *CreateEmailAddressRequest) ToJsonString() string
type CreateEmailAddressResponse ¶
type CreateEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*CreateEmailAddressResponse) ToJsonString ¶
func (r *CreateEmailAddressResponse) ToJsonString() string
type CreateEmailIdentityRequest ¶
type CreateEmailIdentityRequest struct { *tchttp.BaseRequest // 您的发信域名,建议使用三级以上域名。例如: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
func (*CreateEmailIdentityRequest) ToJsonString ¶
func (r *CreateEmailIdentityRequest) ToJsonString() string
type CreateEmailIdentityResponse ¶
type CreateEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // 验证类型。固定值:DOMAIN IdentityType *string `json:"IdentityType,omitempty" name:"IdentityType"` // 是否已通过验证 VerifiedForSendingStatus *bool `json:"VerifiedForSendingStatus,omitempty" name:"VerifiedForSendingStatus"` // 需要配置的DNS信息 Attributes []*DNSAttributes `json:"Attributes,omitempty" name:"Attributes" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*CreateEmailIdentityResponse) ToJsonString ¶
func (r *CreateEmailIdentityResponse) ToJsonString() string
type CreateEmailTemplateRequest ¶
type CreateEmailTemplateRequest struct { *tchttp.BaseRequest // 模板名称 TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // 模板内容 TemplateContent *TemplateContent `json:"TemplateContent,omitempty" name:"TemplateContent"` }
func NewCreateEmailTemplateRequest ¶
func NewCreateEmailTemplateRequest() (request *CreateEmailTemplateRequest)
func (*CreateEmailTemplateRequest) FromJsonString ¶
func (r *CreateEmailTemplateRequest) FromJsonString(s string) error
func (*CreateEmailTemplateRequest) ToJsonString ¶
func (r *CreateEmailTemplateRequest) ToJsonString() string
type CreateEmailTemplateResponse ¶
type CreateEmailTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateEmailTemplateResponse ¶
func NewCreateEmailTemplateResponse() (response *CreateEmailTemplateResponse)
func (*CreateEmailTemplateResponse) FromJsonString ¶
func (r *CreateEmailTemplateResponse) FromJsonString(s string) error
func (*CreateEmailTemplateResponse) ToJsonString ¶
func (r *CreateEmailTemplateResponse) ToJsonString() string
type DNSAttributes ¶
type DNSAttributes struct { // 记录类型 CNAME | A | TXT | MX Type *string `json:"Type,omitempty" name:"Type"` // 域名 SendDomain *string `json:"SendDomain,omitempty" name:"SendDomain"` // 需要配置的值 ExpectedValue *string `json:"ExpectedValue,omitempty" name:"ExpectedValue"` // 腾讯云目前检测到的值 CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` // 检测是否通过,创建时默认为false Status *bool `json:"Status,omitempty" name:"Status"` }
type DeleteBlackListRequest ¶
type DeleteBlackListRequest struct { *tchttp.BaseRequest // 需要清除的黑名单邮箱列表,数组长度至少为1 EmailAddressList []*string `json:"EmailAddressList,omitempty" name:"EmailAddressList" list` }
func NewDeleteBlackListRequest ¶
func NewDeleteBlackListRequest() (request *DeleteBlackListRequest)
func (*DeleteBlackListRequest) FromJsonString ¶
func (r *DeleteBlackListRequest) FromJsonString(s string) error
func (*DeleteBlackListRequest) ToJsonString ¶
func (r *DeleteBlackListRequest) ToJsonString() string
type DeleteBlackListResponse ¶
type DeleteBlackListResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*DeleteBlackListResponse) ToJsonString ¶
func (r *DeleteBlackListResponse) ToJsonString() string
type DeleteEmailAddressRequest ¶
type DeleteEmailAddressRequest struct { *tchttp.BaseRequest // 发信地址 EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` }
func NewDeleteEmailAddressRequest ¶
func NewDeleteEmailAddressRequest() (request *DeleteEmailAddressRequest)
func (*DeleteEmailAddressRequest) FromJsonString ¶
func (r *DeleteEmailAddressRequest) FromJsonString(s string) error
func (*DeleteEmailAddressRequest) ToJsonString ¶
func (r *DeleteEmailAddressRequest) ToJsonString() string
type DeleteEmailAddressResponse ¶
type DeleteEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*DeleteEmailAddressResponse) ToJsonString ¶
func (r *DeleteEmailAddressResponse) ToJsonString() string
type DeleteEmailIdentityRequest ¶
type DeleteEmailIdentityRequest struct { *tchttp.BaseRequest // 发信域名 EmailIdentity *string `json:"EmailIdentity,omitempty" name:"EmailIdentity"` }
func NewDeleteEmailIdentityRequest ¶
func NewDeleteEmailIdentityRequest() (request *DeleteEmailIdentityRequest)
func (*DeleteEmailIdentityRequest) FromJsonString ¶
func (r *DeleteEmailIdentityRequest) FromJsonString(s string) error
func (*DeleteEmailIdentityRequest) ToJsonString ¶
func (r *DeleteEmailIdentityRequest) ToJsonString() string
type DeleteEmailIdentityResponse ¶
type DeleteEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*DeleteEmailIdentityResponse) ToJsonString ¶
func (r *DeleteEmailIdentityResponse) ToJsonString() string
type DeleteEmailTemplateRequest ¶
type DeleteEmailTemplateRequest struct { *tchttp.BaseRequest // 模版ID TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` }
func NewDeleteEmailTemplateRequest ¶
func NewDeleteEmailTemplateRequest() (request *DeleteEmailTemplateRequest)
func (*DeleteEmailTemplateRequest) FromJsonString ¶
func (r *DeleteEmailTemplateRequest) FromJsonString(s string) error
func (*DeleteEmailTemplateRequest) ToJsonString ¶
func (r *DeleteEmailTemplateRequest) ToJsonString() string
type DeleteEmailTemplateResponse ¶
type DeleteEmailTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*DeleteEmailTemplateResponse) ToJsonString ¶
func (r *DeleteEmailTemplateResponse) ToJsonString() string
type EmailIdentity ¶
type EmailSender ¶
type EmailSender struct { // 发信地址 EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` // 发信人别名 // 注意:此字段可能返回 null,表示取不到有效值。 EmailSenderName *string `json:"EmailSenderName,omitempty" name:"EmailSenderName"` // 创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 CreatedTimestamp *uint64 `json:"CreatedTimestamp,omitempty" name:"CreatedTimestamp"` }
type GetEmailIdentityRequest ¶
type GetEmailIdentityRequest struct { *tchttp.BaseRequest // 发信域名 EmailIdentity *string `json:"EmailIdentity,omitempty" name:"EmailIdentity"` }
func NewGetEmailIdentityRequest ¶
func NewGetEmailIdentityRequest() (request *GetEmailIdentityRequest)
func (*GetEmailIdentityRequest) FromJsonString ¶
func (r *GetEmailIdentityRequest) FromJsonString(s string) error
func (*GetEmailIdentityRequest) ToJsonString ¶
func (r *GetEmailIdentityRequest) ToJsonString() string
type GetEmailIdentityResponse ¶
type GetEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // 验证类型。固定值:DOMAIN IdentityType *string `json:"IdentityType,omitempty" name:"IdentityType"` // 是否已通过验证 VerifiedForSendingStatus *bool `json:"VerifiedForSendingStatus,omitempty" name:"VerifiedForSendingStatus"` // DNS配置详情 Attributes []*DNSAttributes `json:"Attributes,omitempty" name:"Attributes" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*GetEmailIdentityResponse) ToJsonString ¶
func (r *GetEmailIdentityResponse) ToJsonString() string
type GetEmailTemplateRequest ¶
type GetEmailTemplateRequest struct { *tchttp.BaseRequest // 模板ID TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` }
func NewGetEmailTemplateRequest ¶
func NewGetEmailTemplateRequest() (request *GetEmailTemplateRequest)
func (*GetEmailTemplateRequest) FromJsonString ¶
func (r *GetEmailTemplateRequest) FromJsonString(s string) error
func (*GetEmailTemplateRequest) ToJsonString ¶
func (r *GetEmailTemplateRequest) ToJsonString() string
type GetEmailTemplateResponse ¶
type GetEmailTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 模板内容数据 TemplateContent *TemplateContent `json:"TemplateContent,omitempty" name:"TemplateContent"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*GetEmailTemplateResponse) ToJsonString ¶
func (r *GetEmailTemplateResponse) ToJsonString() string
type GetSendEmailStatusRequest ¶ added in v1.0.82
type GetSendEmailStatusRequest struct { *tchttp.BaseRequest // 发送的日期,必填。仅支持查询某个日期,不支持范围查询。 RequestDate *string `json:"RequestDate,omitempty" name:"RequestDate"` // 偏移量。默认为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 拉取最大条数,最多 100。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // SendMail接口返回的MessageId字段。 MessageId *string `json:"MessageId,omitempty" name:"MessageId"` // 收件人邮箱。 ToEmailAddress *string `json:"ToEmailAddress,omitempty" name:"ToEmailAddress"` }
func NewGetSendEmailStatusRequest ¶ added in v1.0.82
func NewGetSendEmailStatusRequest() (request *GetSendEmailStatusRequest)
func (*GetSendEmailStatusRequest) FromJsonString ¶ added in v1.0.82
func (r *GetSendEmailStatusRequest) FromJsonString(s string) error
func (*GetSendEmailStatusRequest) ToJsonString ¶ added in v1.0.82
func (r *GetSendEmailStatusRequest) ToJsonString() string
type GetSendEmailStatusResponse ¶ added in v1.0.82
type GetSendEmailStatusResponse struct { *tchttp.BaseResponse Response *struct { // 邮件发送状态列表 EmailStatusList []*SendEmailStatus `json:"EmailStatusList,omitempty" name:"EmailStatusList" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetSendEmailStatusResponse ¶ added in v1.0.82
func NewGetSendEmailStatusResponse() (response *GetSendEmailStatusResponse)
func (*GetSendEmailStatusResponse) FromJsonString ¶ added in v1.0.82
func (r *GetSendEmailStatusResponse) FromJsonString(s string) error
func (*GetSendEmailStatusResponse) ToJsonString ¶ added in v1.0.82
func (r *GetSendEmailStatusResponse) ToJsonString() string
type GetStatisticsReportRequest ¶
type GetStatisticsReportRequest struct { *tchttp.BaseRequest // 开始日期 StartDate *string `json:"StartDate,omitempty" name:"StartDate"` // 结束日期 EndDate *string `json:"EndDate,omitempty" name:"EndDate"` // 发信域名 Domain *string `json:"Domain,omitempty" name:"Domain"` // 收件方邮箱类型,例如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
func (*GetStatisticsReportRequest) ToJsonString ¶
func (r *GetStatisticsReportRequest) ToJsonString() string
type GetStatisticsReportResponse ¶
type GetStatisticsReportResponse struct { *tchttp.BaseResponse Response *struct { // 发信统计报告,按天 DailyVolumes []*Volume `json:"DailyVolumes,omitempty" name:"DailyVolumes" list` // 发信统计报告,总览 OverallVolume *Volume `json:"OverallVolume,omitempty" name:"OverallVolume"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*GetStatisticsReportResponse) ToJsonString ¶
func (r *GetStatisticsReportResponse) ToJsonString() string
type ListBlackEmailAddressRequest ¶
type ListBlackEmailAddressRequest struct { *tchttp.BaseRequest // 开始日期,格式为YYYY-MM-DD StartDate *string `json:"StartDate,omitempty" name:"StartDate"` // 结束日期,格式为YYYY-MM-DD EndDate *string `json:"EndDate,omitempty" name:"EndDate"` // 规范,配合Offset使用 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 规范,配合Limit使用,Limit最大取值为100 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 可以指定邮箱进行查询 EmailAddress *string `json:"EmailAddress,omitempty" name:"EmailAddress"` // 可以指定任务ID进行查询 TaskID *string `json:"TaskID,omitempty" name:"TaskID"` }
func NewListBlackEmailAddressRequest ¶
func NewListBlackEmailAddressRequest() (request *ListBlackEmailAddressRequest)
func (*ListBlackEmailAddressRequest) FromJsonString ¶
func (r *ListBlackEmailAddressRequest) FromJsonString(s string) error
func (*ListBlackEmailAddressRequest) ToJsonString ¶
func (r *ListBlackEmailAddressRequest) ToJsonString() string
type ListBlackEmailAddressResponse ¶
type ListBlackEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // 黑名单列表 BlackList []*BlackEmailAddress `json:"BlackList,omitempty" name:"BlackList" list` // 黑名单总数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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
func (*ListEmailAddressRequest) ToJsonString ¶
func (r *ListEmailAddressRequest) ToJsonString() string
type ListEmailAddressResponse ¶
type ListEmailAddressResponse struct { *tchttp.BaseResponse Response *struct { // 发信地址列表详情 // 注意:此字段可能返回 null,表示取不到有效值。 EmailSenders []*EmailSender `json:"EmailSenders,omitempty" name:"EmailSenders" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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
func (*ListEmailIdentitiesRequest) ToJsonString ¶
func (r *ListEmailIdentitiesRequest) ToJsonString() string
type ListEmailIdentitiesResponse ¶
type ListEmailIdentitiesResponse struct { *tchttp.BaseResponse Response *struct { // 发信域名列表 EmailIdentities []*EmailIdentity `json:"EmailIdentities,omitempty" name:"EmailIdentities" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*ListEmailIdentitiesResponse) ToJsonString ¶
func (r *ListEmailIdentitiesResponse) ToJsonString() string
type ListEmailTemplatesRequest ¶
type ListEmailTemplatesRequest struct { *tchttp.BaseRequest // 获取模版数据量,用于分页 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 获取模版偏移值,用于分页 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewListEmailTemplatesRequest ¶
func NewListEmailTemplatesRequest() (request *ListEmailTemplatesRequest)
func (*ListEmailTemplatesRequest) FromJsonString ¶
func (r *ListEmailTemplatesRequest) FromJsonString(s string) error
func (*ListEmailTemplatesRequest) ToJsonString ¶
func (r *ListEmailTemplatesRequest) ToJsonString() string
type ListEmailTemplatesResponse ¶
type ListEmailTemplatesResponse struct { *tchttp.BaseResponse Response *struct { // 邮件模板列表 TemplatesMetadata []*TemplatesMetadata `json:"TemplatesMetadata,omitempty" name:"TemplatesMetadata" list` // 模版总数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*ListEmailTemplatesResponse) ToJsonString ¶
func (r *ListEmailTemplatesResponse) ToJsonString() string
type SendEmailRequest ¶
type SendEmailRequest struct { *tchttp.BaseRequest // 发信邮件地址。请填写发件人邮箱地址,例如:noreply@mail.qcloud.com。如需填写发件人说明,请按照 // 发信人 <邮件地址> 的方式填写,例如: // 腾讯云团队 <noreply@mail.qcloud.com> FromEmailAddress *string `json:"FromEmailAddress,omitempty" name:"FromEmailAddress"` // 收信人邮箱地址,最多支持群发50人。注意:邮件内容会显示所有收件人地址,非群发邮件请多次调用API发送。 Destination []*string `json:"Destination,omitempty" name:"Destination" list` // 邮件主题 Subject *string `json:"Subject,omitempty" name:"Subject"` // 邮件的“回复”电子邮件地址。可以填写您能收到邮件的邮箱地址,可以是个人邮箱。如果不填,收件人将会回复到腾讯云。 ReplyToAddresses *string `json:"ReplyToAddresses,omitempty" name:"ReplyToAddresses"` // 使用模板发送时,填写的模板相关参数 Template *Template `json:"Template,omitempty" name:"Template"` // 使用API直接发送内容时,填写的邮件内容 Simple *Simple `json:"Simple,omitempty" name:"Simple"` // 需要发送附件时,填写附件相关参数。 Attachments []*Attachment `json:"Attachments,omitempty" name:"Attachments" list` }
func NewSendEmailRequest ¶
func NewSendEmailRequest() (request *SendEmailRequest)
func (*SendEmailRequest) FromJsonString ¶
func (r *SendEmailRequest) FromJsonString(s string) error
func (*SendEmailRequest) ToJsonString ¶
func (r *SendEmailRequest) ToJsonString() string
type SendEmailResponse ¶
type SendEmailResponse struct { *tchttp.BaseResponse Response *struct { // 接受消息生成的唯一消息标识符。 MessageId *string `json:"MessageId,omitempty" name:"MessageId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*SendEmailResponse) ToJsonString ¶
func (r *SendEmailResponse) ToJsonString() string
type SendEmailStatus ¶ added in v1.0.82
type SendEmailStatus struct { // SendEmail返回的MessageId MessageId *string `json:"MessageId,omitempty" name:"MessageId"` // 收件人邮箱 ToEmailAddress *string `json:"ToEmailAddress,omitempty" name:"ToEmailAddress"` // 发件人邮箱 FromEmailAddress *string `json:"FromEmailAddress,omitempty" name:"FromEmailAddress"` // 腾讯云处理状态 // 0: 处理成功 // 1001: 内部系统异常 // 1002: 内部系统异常 // 1003: 内部系统异常 // 1003: 内部系统异常 // 1004: 发信超时 // 1005: 内部系统异常 // 1006: 触发频率控制,短时间内对同一地址发送过多邮件 // 1007: 邮件地址在黑名单中 // 1009: 内部系统异常 // 1010: 超出了每日发送限制 // 1011: 无发送自定义内容权限,必须使用模板 // 2001: 找不到相关记录 // 3007: 模板ID无效或者不可用 // 3008: 模板状态异常 // 3009: 无权限使用该模板 // 3010: TemplateData字段格式不正确 // 3014: 发件域名没有经过认证,无法发送 // 3020: 收件方邮箱类型在黑名单 // 3024: 邮箱地址格式预检查失败 // 3030: 退信率过高,临时限制发送 // 3033: 余额不足,账号欠费等 SendStatus *int64 `json:"SendStatus,omitempty" name:"SendStatus"` // 收件方处理状态 // 0: 请求成功被腾讯云接受,进入发送队列 // 1: 邮件递送成功,DeliverTime表示递送成功的时间 // 2: 邮件因某种原因被丢弃,DeliverMessage表示丢弃原因 // 3: 收件方ESP拒信,一般原因为邮箱地址不存在,或其它原因 // 8: 邮件被ESP因某些原因延迟递送,DeliverMessage表示延迟原因 DeliverStatus *int64 `json:"DeliverStatus,omitempty" name:"DeliverStatus"` // 收件方处理状态描述 DeliverMessage *string `json:"DeliverMessage,omitempty" name:"DeliverMessage"` // 请求到达腾讯云时间戳 RequestTime *int64 `json:"RequestTime,omitempty" name:"RequestTime"` // 腾讯云执行递送时间戳 DeliverTime *int64 `json:"DeliverTime,omitempty" name:"DeliverTime"` // 用户是否打开该邮件 UserOpened *bool `json:"UserOpened,omitempty" name:"UserOpened"` // 用户是否点击该邮件中的链接 UserClicked *bool `json:"UserClicked,omitempty" name:"UserClicked"` // 用户是否取消该发送者的订阅 UserUnsubscribed *bool `json:"UserUnsubscribed,omitempty" name:"UserUnsubscribed"` // 用户是否举报该发送者 UserComplainted *bool `json:"UserComplainted,omitempty" name:"UserComplainted"` }
type TemplateContent ¶
type TemplatesMetadata ¶
type TemplatesMetadata struct { // 创建时间 CreatedTimestamp *uint64 `json:"CreatedTimestamp,omitempty" name:"CreatedTimestamp"` // 模板名称 TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // 模板状态。1-审核中|0-已通过|2-拒绝|其它-不可用 TemplateStatus *int64 `json:"TemplateStatus,omitempty" name:"TemplateStatus"` // 模板ID TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` // 审核原因 ReviewReason *string `json:"ReviewReason,omitempty" name:"ReviewReason"` }
type UpdateEmailIdentityRequest ¶
type UpdateEmailIdentityRequest struct { *tchttp.BaseRequest // 请求验证的域名 EmailIdentity *string `json:"EmailIdentity,omitempty" name:"EmailIdentity"` }
func NewUpdateEmailIdentityRequest ¶
func NewUpdateEmailIdentityRequest() (request *UpdateEmailIdentityRequest)
func (*UpdateEmailIdentityRequest) FromJsonString ¶
func (r *UpdateEmailIdentityRequest) FromJsonString(s string) error
func (*UpdateEmailIdentityRequest) ToJsonString ¶
func (r *UpdateEmailIdentityRequest) ToJsonString() string
type UpdateEmailIdentityResponse ¶
type UpdateEmailIdentityResponse struct { *tchttp.BaseResponse Response *struct { // 验证类型。固定值:DOMAIN IdentityType *string `json:"IdentityType,omitempty" name:"IdentityType"` // 是否已通过验证 VerifiedForSendingStatus *bool `json:"VerifiedForSendingStatus,omitempty" name:"VerifiedForSendingStatus"` // 需要配置的DNS信息 Attributes []*DNSAttributes `json:"Attributes,omitempty" name:"Attributes" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
func (*UpdateEmailIdentityResponse) ToJsonString ¶
func (r *UpdateEmailIdentityResponse) ToJsonString() string
type UpdateEmailTemplateRequest ¶
type UpdateEmailTemplateRequest struct { *tchttp.BaseRequest // 模板内容 TemplateContent *TemplateContent `json:"TemplateContent,omitempty" name:"TemplateContent"` // 模板ID TemplateID *uint64 `json:"TemplateID,omitempty" name:"TemplateID"` // 模版名字 TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` }
func NewUpdateEmailTemplateRequest ¶
func NewUpdateEmailTemplateRequest() (request *UpdateEmailTemplateRequest)
func (*UpdateEmailTemplateRequest) FromJsonString ¶
func (r *UpdateEmailTemplateRequest) FromJsonString(s string) error
func (*UpdateEmailTemplateRequest) ToJsonString ¶
func (r *UpdateEmailTemplateRequest) ToJsonString() string
type UpdateEmailTemplateResponse ¶
type UpdateEmailTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateEmailTemplateResponse ¶
func NewUpdateEmailTemplateResponse() (response *UpdateEmailTemplateResponse)
func (*UpdateEmailTemplateResponse) FromJsonString ¶
func (r *UpdateEmailTemplateResponse) FromJsonString(s string) error
func (*UpdateEmailTemplateResponse) ToJsonString ¶
func (r *UpdateEmailTemplateResponse) ToJsonString() string
type Volume ¶
type Volume struct { // 日期 // 注意:此字段可能返回 null,表示取不到有效值。 SendDate *string `json:"SendDate,omitempty" name:"SendDate"` // 邮件请求数量 RequestCount *uint64 `json:"RequestCount,omitempty" name:"RequestCount"` // 腾讯云通过数量 AcceptedCount *uint64 `json:"AcceptedCount,omitempty" name:"AcceptedCount"` // 送达数量 DeliveredCount *uint64 `json:"DeliveredCount,omitempty" name:"DeliveredCount"` // 打开邮件的用户数量,根据收件人去重 OpenedCount *uint64 `json:"OpenedCount,omitempty" name:"OpenedCount"` // 点击了邮件中的链接数量用户数量 ClickedCount *uint64 `json:"ClickedCount,omitempty" name:"ClickedCount"` // 退信数量 BounceCount *uint64 `json:"BounceCount,omitempty" name:"BounceCount"` // 取消订阅的用户数量 // 注意:此字段可能返回 null,表示取不到有效值。 UnsubscribeCount *uint64 `json:"UnsubscribeCount,omitempty" name:"UnsubscribeCount"` }