1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSesSendEmailStatus
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getSesSendEmailStatus

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of ses send_email_status

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const sendEmailStatus = tencentcloud.getSesSendEmailStatus({
        messageId: "qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1",
        requestDate: "2020-09-22",
        toEmailAddress: "example@cloud.com",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    send_email_status = tencentcloud.get_ses_send_email_status(message_id="qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1",
        request_date="2020-09-22",
        to_email_address="example@cloud.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetSesSendEmailStatus(ctx, &tencentcloud.GetSesSendEmailStatusArgs{
    			MessageId:      pulumi.StringRef("qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1"),
    			RequestDate:    "2020-09-22",
    			ToEmailAddress: pulumi.StringRef("example@cloud.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var sendEmailStatus = Tencentcloud.GetSesSendEmailStatus.Invoke(new()
        {
            MessageId = "qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1",
            RequestDate = "2020-09-22",
            ToEmailAddress = "example@cloud.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetSesSendEmailStatusArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var sendEmailStatus = TencentcloudFunctions.getSesSendEmailStatus(GetSesSendEmailStatusArgs.builder()
                .messageId("qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1")
                .requestDate("2020-09-22")
                .toEmailAddress("example@cloud.com")
                .build());
    
        }
    }
    
    variables:
      sendEmailStatus:
        fn::invoke:
          function: tencentcloud:getSesSendEmailStatus
          arguments:
            messageId: qcloudses-30-4123414323-date-20210101094334-syNARhMTbKI1
            requestDate: 2020-09-22
            toEmailAddress: example@cloud.com
    

    Using getSesSendEmailStatus

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSesSendEmailStatus(args: GetSesSendEmailStatusArgs, opts?: InvokeOptions): Promise<GetSesSendEmailStatusResult>
    function getSesSendEmailStatusOutput(args: GetSesSendEmailStatusOutputArgs, opts?: InvokeOptions): Output<GetSesSendEmailStatusResult>
    def get_ses_send_email_status(id: Optional[str] = None,
                                  message_id: Optional[str] = None,
                                  request_date: Optional[str] = None,
                                  result_output_file: Optional[str] = None,
                                  to_email_address: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSesSendEmailStatusResult
    def get_ses_send_email_status_output(id: Optional[pulumi.Input[str]] = None,
                                  message_id: Optional[pulumi.Input[str]] = None,
                                  request_date: Optional[pulumi.Input[str]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  to_email_address: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSesSendEmailStatusResult]
    func GetSesSendEmailStatus(ctx *Context, args *GetSesSendEmailStatusArgs, opts ...InvokeOption) (*GetSesSendEmailStatusResult, error)
    func GetSesSendEmailStatusOutput(ctx *Context, args *GetSesSendEmailStatusOutputArgs, opts ...InvokeOption) GetSesSendEmailStatusResultOutput

    > Note: This function is named GetSesSendEmailStatus in the Go SDK.

    public static class GetSesSendEmailStatus 
    {
        public static Task<GetSesSendEmailStatusResult> InvokeAsync(GetSesSendEmailStatusArgs args, InvokeOptions? opts = null)
        public static Output<GetSesSendEmailStatusResult> Invoke(GetSesSendEmailStatusInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSesSendEmailStatusResult> getSesSendEmailStatus(GetSesSendEmailStatusArgs args, InvokeOptions options)
    public static Output<GetSesSendEmailStatusResult> getSesSendEmailStatus(GetSesSendEmailStatusArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSesSendEmailStatus:getSesSendEmailStatus
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RequestDate string
    Date sent. This parameter is required. You can only query the sending status for a single date at a time.
    Id string
    MessageId string
    The MessageId field returned by the SendMail API.
    ResultOutputFile string
    Used to save results.
    ToEmailAddress string
    Recipient email address.
    RequestDate string
    Date sent. This parameter is required. You can only query the sending status for a single date at a time.
    Id string
    MessageId string
    The MessageId field returned by the SendMail API.
    ResultOutputFile string
    Used to save results.
    ToEmailAddress string
    Recipient email address.
    requestDate String
    Date sent. This parameter is required. You can only query the sending status for a single date at a time.
    id String
    messageId String
    The MessageId field returned by the SendMail API.
    resultOutputFile String
    Used to save results.
    toEmailAddress String
    Recipient email address.
    requestDate string
    Date sent. This parameter is required. You can only query the sending status for a single date at a time.
    id string
    messageId string
    The MessageId field returned by the SendMail API.
    resultOutputFile string
    Used to save results.
    toEmailAddress string
    Recipient email address.
    request_date str
    Date sent. This parameter is required. You can only query the sending status for a single date at a time.
    id str
    message_id str
    The MessageId field returned by the SendMail API.
    result_output_file str
    Used to save results.
    to_email_address str
    Recipient email address.
    requestDate String
    Date sent. This parameter is required. You can only query the sending status for a single date at a time.
    id String
    messageId String
    The MessageId field returned by the SendMail API.
    resultOutputFile String
    Used to save results.
    toEmailAddress String
    Recipient email address.

    getSesSendEmailStatus Result

    The following output properties are available:

    EmailStatusLists List<GetSesSendEmailStatusEmailStatusList>
    Status of sent emails.
    Id string
    RequestDate string
    MessageId string
    The MessageId field returned by the SendEmail API.
    ResultOutputFile string
    ToEmailAddress string
    Recipient email address.
    EmailStatusLists []GetSesSendEmailStatusEmailStatusList
    Status of sent emails.
    Id string
    RequestDate string
    MessageId string
    The MessageId field returned by the SendEmail API.
    ResultOutputFile string
    ToEmailAddress string
    Recipient email address.
    emailStatusLists List<GetSesSendEmailStatusEmailStatusList>
    Status of sent emails.
    id String
    requestDate String
    messageId String
    The MessageId field returned by the SendEmail API.
    resultOutputFile String
    toEmailAddress String
    Recipient email address.
    emailStatusLists GetSesSendEmailStatusEmailStatusList[]
    Status of sent emails.
    id string
    requestDate string
    messageId string
    The MessageId field returned by the SendEmail API.
    resultOutputFile string
    toEmailAddress string
    Recipient email address.
    email_status_lists Sequence[GetSesSendEmailStatusEmailStatusList]
    Status of sent emails.
    id str
    request_date str
    message_id str
    The MessageId field returned by the SendEmail API.
    result_output_file str
    to_email_address str
    Recipient email address.
    emailStatusLists List<Property Map>
    Status of sent emails.
    id String
    requestDate String
    messageId String
    The MessageId field returned by the SendEmail API.
    resultOutputFile String
    toEmailAddress String
    Recipient email address.

    Supporting Types

    GetSesSendEmailStatusEmailStatusList

    DeliverMessage string
    Description of the recipient processing status.
    DeliverStatus double
    Recipient processing status0: Tencent Cloud has accepted the request and added it to the send queue.1: The email is delivered successfully. DeliverTime indicates the time when the email is delivered successfully.2: The email is discarded. DeliverMessage indicates the reason for discarding.3: The recipient&#39;s ESP rejects the email, probably because the email address does not exist or due to other reasons.8: The email is delayed by the ESP. DeliverMessage indicates the reason for delay.
    DeliverTime double
    Timestamp when Tencent Cloud delivers the email.
    FromEmailAddress string
    Sender email address.
    MessageId string
    The MessageId field returned by the SendMail API.
    RequestTime double
    Timestamp when the request arrives at Tencent Cloud.
    SendStatus double
    Tencent Cloud processing status: 0: Successful. 1001: Internal system exception. 1002: Internal system exception. 1003: Internal system exception. 1003: Internal system exception. 1004: Email sending timed out. 1005: Internal system exception. 1006: You have sent too many emails to the same address in a short period. 1007: The email address is in the blocklist. 1008: The sender domain is rejected by the recipient. 1009: Internal system exception. 1010: The daily email sending limit is exceeded. 1011: You have no permission to send custom content. Use a template. 1013: The sender domain is unsubscribed from by the recipient. 2001: No results were found. 3007: The template ID is invalid or the template is unavailable. 3008: The sender domain is temporarily blocked by the recipient domain. 3009: You have no permission to use this template. 3010: The format of the TemplateData field is incorrect. 3014: The email cannot be sent because the sender domain is not verified. 3020: The recipient email address is in the blocklist. 3024: Failed to precheck the email address format. 3030: Email sending is restricted temporarily due to a high bounce rate. 3033: The account has insufficient balance or overdue payment.
    ToEmailAddress string
    Recipient email address.
    UserClicked bool
    Whether the recipient has clicked the links in the email.
    UserComplainted bool
    Whether the recipient has reported the sender.
    UserOpened bool
    Whether the recipient has opened the email.
    UserUnsubscribed bool
    Whether the recipient has unsubscribed from the email sent by the sender.
    DeliverMessage string
    Description of the recipient processing status.
    DeliverStatus float64
    Recipient processing status0: Tencent Cloud has accepted the request and added it to the send queue.1: The email is delivered successfully. DeliverTime indicates the time when the email is delivered successfully.2: The email is discarded. DeliverMessage indicates the reason for discarding.3: The recipient&#39;s ESP rejects the email, probably because the email address does not exist or due to other reasons.8: The email is delayed by the ESP. DeliverMessage indicates the reason for delay.
    DeliverTime float64
    Timestamp when Tencent Cloud delivers the email.
    FromEmailAddress string
    Sender email address.
    MessageId string
    The MessageId field returned by the SendMail API.
    RequestTime float64
    Timestamp when the request arrives at Tencent Cloud.
    SendStatus float64
    Tencent Cloud processing status: 0: Successful. 1001: Internal system exception. 1002: Internal system exception. 1003: Internal system exception. 1003: Internal system exception. 1004: Email sending timed out. 1005: Internal system exception. 1006: You have sent too many emails to the same address in a short period. 1007: The email address is in the blocklist. 1008: The sender domain is rejected by the recipient. 1009: Internal system exception. 1010: The daily email sending limit is exceeded. 1011: You have no permission to send custom content. Use a template. 1013: The sender domain is unsubscribed from by the recipient. 2001: No results were found. 3007: The template ID is invalid or the template is unavailable. 3008: The sender domain is temporarily blocked by the recipient domain. 3009: You have no permission to use this template. 3010: The format of the TemplateData field is incorrect. 3014: The email cannot be sent because the sender domain is not verified. 3020: The recipient email address is in the blocklist. 3024: Failed to precheck the email address format. 3030: Email sending is restricted temporarily due to a high bounce rate. 3033: The account has insufficient balance or overdue payment.
    ToEmailAddress string
    Recipient email address.
    UserClicked bool
    Whether the recipient has clicked the links in the email.
    UserComplainted bool
    Whether the recipient has reported the sender.
    UserOpened bool
    Whether the recipient has opened the email.
    UserUnsubscribed bool
    Whether the recipient has unsubscribed from the email sent by the sender.
    deliverMessage String
    Description of the recipient processing status.
    deliverStatus Double
    Recipient processing status0: Tencent Cloud has accepted the request and added it to the send queue.1: The email is delivered successfully. DeliverTime indicates the time when the email is delivered successfully.2: The email is discarded. DeliverMessage indicates the reason for discarding.3: The recipient&#39;s ESP rejects the email, probably because the email address does not exist or due to other reasons.8: The email is delayed by the ESP. DeliverMessage indicates the reason for delay.
    deliverTime Double
    Timestamp when Tencent Cloud delivers the email.
    fromEmailAddress String
    Sender email address.
    messageId String
    The MessageId field returned by the SendMail API.
    requestTime Double
    Timestamp when the request arrives at Tencent Cloud.
    sendStatus Double
    Tencent Cloud processing status: 0: Successful. 1001: Internal system exception. 1002: Internal system exception. 1003: Internal system exception. 1003: Internal system exception. 1004: Email sending timed out. 1005: Internal system exception. 1006: You have sent too many emails to the same address in a short period. 1007: The email address is in the blocklist. 1008: The sender domain is rejected by the recipient. 1009: Internal system exception. 1010: The daily email sending limit is exceeded. 1011: You have no permission to send custom content. Use a template. 1013: The sender domain is unsubscribed from by the recipient. 2001: No results were found. 3007: The template ID is invalid or the template is unavailable. 3008: The sender domain is temporarily blocked by the recipient domain. 3009: You have no permission to use this template. 3010: The format of the TemplateData field is incorrect. 3014: The email cannot be sent because the sender domain is not verified. 3020: The recipient email address is in the blocklist. 3024: Failed to precheck the email address format. 3030: Email sending is restricted temporarily due to a high bounce rate. 3033: The account has insufficient balance or overdue payment.
    toEmailAddress String
    Recipient email address.
    userClicked Boolean
    Whether the recipient has clicked the links in the email.
    userComplainted Boolean
    Whether the recipient has reported the sender.
    userOpened Boolean
    Whether the recipient has opened the email.
    userUnsubscribed Boolean
    Whether the recipient has unsubscribed from the email sent by the sender.
    deliverMessage string
    Description of the recipient processing status.
    deliverStatus number
    Recipient processing status0: Tencent Cloud has accepted the request and added it to the send queue.1: The email is delivered successfully. DeliverTime indicates the time when the email is delivered successfully.2: The email is discarded. DeliverMessage indicates the reason for discarding.3: The recipient&#39;s ESP rejects the email, probably because the email address does not exist or due to other reasons.8: The email is delayed by the ESP. DeliverMessage indicates the reason for delay.
    deliverTime number
    Timestamp when Tencent Cloud delivers the email.
    fromEmailAddress string
    Sender email address.
    messageId string
    The MessageId field returned by the SendMail API.
    requestTime number
    Timestamp when the request arrives at Tencent Cloud.
    sendStatus number
    Tencent Cloud processing status: 0: Successful. 1001: Internal system exception. 1002: Internal system exception. 1003: Internal system exception. 1003: Internal system exception. 1004: Email sending timed out. 1005: Internal system exception. 1006: You have sent too many emails to the same address in a short period. 1007: The email address is in the blocklist. 1008: The sender domain is rejected by the recipient. 1009: Internal system exception. 1010: The daily email sending limit is exceeded. 1011: You have no permission to send custom content. Use a template. 1013: The sender domain is unsubscribed from by the recipient. 2001: No results were found. 3007: The template ID is invalid or the template is unavailable. 3008: The sender domain is temporarily blocked by the recipient domain. 3009: You have no permission to use this template. 3010: The format of the TemplateData field is incorrect. 3014: The email cannot be sent because the sender domain is not verified. 3020: The recipient email address is in the blocklist. 3024: Failed to precheck the email address format. 3030: Email sending is restricted temporarily due to a high bounce rate. 3033: The account has insufficient balance or overdue payment.
    toEmailAddress string
    Recipient email address.
    userClicked boolean
    Whether the recipient has clicked the links in the email.
    userComplainted boolean
    Whether the recipient has reported the sender.
    userOpened boolean
    Whether the recipient has opened the email.
    userUnsubscribed boolean
    Whether the recipient has unsubscribed from the email sent by the sender.
    deliver_message str
    Description of the recipient processing status.
    deliver_status float
    Recipient processing status0: Tencent Cloud has accepted the request and added it to the send queue.1: The email is delivered successfully. DeliverTime indicates the time when the email is delivered successfully.2: The email is discarded. DeliverMessage indicates the reason for discarding.3: The recipient&#39;s ESP rejects the email, probably because the email address does not exist or due to other reasons.8: The email is delayed by the ESP. DeliverMessage indicates the reason for delay.
    deliver_time float
    Timestamp when Tencent Cloud delivers the email.
    from_email_address str
    Sender email address.
    message_id str
    The MessageId field returned by the SendMail API.
    request_time float
    Timestamp when the request arrives at Tencent Cloud.
    send_status float
    Tencent Cloud processing status: 0: Successful. 1001: Internal system exception. 1002: Internal system exception. 1003: Internal system exception. 1003: Internal system exception. 1004: Email sending timed out. 1005: Internal system exception. 1006: You have sent too many emails to the same address in a short period. 1007: The email address is in the blocklist. 1008: The sender domain is rejected by the recipient. 1009: Internal system exception. 1010: The daily email sending limit is exceeded. 1011: You have no permission to send custom content. Use a template. 1013: The sender domain is unsubscribed from by the recipient. 2001: No results were found. 3007: The template ID is invalid or the template is unavailable. 3008: The sender domain is temporarily blocked by the recipient domain. 3009: You have no permission to use this template. 3010: The format of the TemplateData field is incorrect. 3014: The email cannot be sent because the sender domain is not verified. 3020: The recipient email address is in the blocklist. 3024: Failed to precheck the email address format. 3030: Email sending is restricted temporarily due to a high bounce rate. 3033: The account has insufficient balance or overdue payment.
    to_email_address str
    Recipient email address.
    user_clicked bool
    Whether the recipient has clicked the links in the email.
    user_complainted bool
    Whether the recipient has reported the sender.
    user_opened bool
    Whether the recipient has opened the email.
    user_unsubscribed bool
    Whether the recipient has unsubscribed from the email sent by the sender.
    deliverMessage String
    Description of the recipient processing status.
    deliverStatus Number
    Recipient processing status0: Tencent Cloud has accepted the request and added it to the send queue.1: The email is delivered successfully. DeliverTime indicates the time when the email is delivered successfully.2: The email is discarded. DeliverMessage indicates the reason for discarding.3: The recipient&#39;s ESP rejects the email, probably because the email address does not exist or due to other reasons.8: The email is delayed by the ESP. DeliverMessage indicates the reason for delay.
    deliverTime Number
    Timestamp when Tencent Cloud delivers the email.
    fromEmailAddress String
    Sender email address.
    messageId String
    The MessageId field returned by the SendMail API.
    requestTime Number
    Timestamp when the request arrives at Tencent Cloud.
    sendStatus Number
    Tencent Cloud processing status: 0: Successful. 1001: Internal system exception. 1002: Internal system exception. 1003: Internal system exception. 1003: Internal system exception. 1004: Email sending timed out. 1005: Internal system exception. 1006: You have sent too many emails to the same address in a short period. 1007: The email address is in the blocklist. 1008: The sender domain is rejected by the recipient. 1009: Internal system exception. 1010: The daily email sending limit is exceeded. 1011: You have no permission to send custom content. Use a template. 1013: The sender domain is unsubscribed from by the recipient. 2001: No results were found. 3007: The template ID is invalid or the template is unavailable. 3008: The sender domain is temporarily blocked by the recipient domain. 3009: You have no permission to use this template. 3010: The format of the TemplateData field is incorrect. 3014: The email cannot be sent because the sender domain is not verified. 3020: The recipient email address is in the blocklist. 3024: Failed to precheck the email address format. 3030: Email sending is restricted temporarily due to a high bounce rate. 3033: The account has insufficient balance or overdue payment.
    toEmailAddress String
    Recipient email address.
    userClicked Boolean
    Whether the recipient has clicked the links in the email.
    userComplainted Boolean
    Whether the recipient has reported the sender.
    userOpened Boolean
    Whether the recipient has opened the email.
    userUnsubscribed Boolean
    Whether the recipient has unsubscribed from the email sent by the sender.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack