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

tencentcloud.SesSendEmail

Explore with Pulumi AI

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

    Provides a resource to create a ses send_email

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const sendEmail = new tencentcloud.SesSendEmail("sendEmail", {
        destinations: ["1055482519@qq.com"],
        fromEmailAddress: "aaa@iac-tf.cloud",
        replyToAddresses: "aaa@iac-tf.cloud",
        subject: "test subject",
        template: {
            templateData: "{\"name\":\"xxx\",\"age\":\"xx\"}",
            templateId: 99629,
        },
        triggerType: 1,
        unsubscribe: "1",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    send_email = tencentcloud.SesSendEmail("sendEmail",
        destinations=["1055482519@qq.com"],
        from_email_address="aaa@iac-tf.cloud",
        reply_to_addresses="aaa@iac-tf.cloud",
        subject="test subject",
        template={
            "template_data": "{\"name\":\"xxx\",\"age\":\"xx\"}",
            "template_id": 99629,
        },
        trigger_type=1,
        unsubscribe="1")
    
    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.NewSesSendEmail(ctx, "sendEmail", &tencentcloud.SesSendEmailArgs{
    			Destinations: pulumi.StringArray{
    				pulumi.String("1055482519@qq.com"),
    			},
    			FromEmailAddress: pulumi.String("aaa@iac-tf.cloud"),
    			ReplyToAddresses: pulumi.String("aaa@iac-tf.cloud"),
    			Subject:          pulumi.String("test subject"),
    			Template: &tencentcloud.SesSendEmailTemplateArgs{
    				TemplateData: pulumi.String("{\"name\":\"xxx\",\"age\":\"xx\"}"),
    				TemplateId:   pulumi.Float64(99629),
    			},
    			TriggerType: pulumi.Float64(1),
    			Unsubscribe: pulumi.String("1"),
    		})
    		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 sendEmail = new Tencentcloud.SesSendEmail("sendEmail", new()
        {
            Destinations = new[]
            {
                "1055482519@qq.com",
            },
            FromEmailAddress = "aaa@iac-tf.cloud",
            ReplyToAddresses = "aaa@iac-tf.cloud",
            Subject = "test subject",
            Template = new Tencentcloud.Inputs.SesSendEmailTemplateArgs
            {
                TemplateData = "{\"name\":\"xxx\",\"age\":\"xx\"}",
                TemplateId = 99629,
            },
            TriggerType = 1,
            Unsubscribe = "1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SesSendEmail;
    import com.pulumi.tencentcloud.SesSendEmailArgs;
    import com.pulumi.tencentcloud.inputs.SesSendEmailTemplateArgs;
    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) {
            var sendEmail = new SesSendEmail("sendEmail", SesSendEmailArgs.builder()
                .destinations("1055482519@qq.com")
                .fromEmailAddress("aaa@iac-tf.cloud")
                .replyToAddresses("aaa@iac-tf.cloud")
                .subject("test subject")
                .template(SesSendEmailTemplateArgs.builder()
                    .templateData("{\"name\":\"xxx\",\"age\":\"xx\"}")
                    .templateId(99629)
                    .build())
                .triggerType(1)
                .unsubscribe("1")
                .build());
    
        }
    }
    
    resources:
      sendEmail:
        type: tencentcloud:SesSendEmail
        properties:
          destinations:
            - 1055482519@qq.com
          fromEmailAddress: aaa@iac-tf.cloud
          replyToAddresses: aaa@iac-tf.cloud
          subject: test subject
          template:
            templateData: '{"name":"xxx","age":"xx"}'
            templateId: 99629
          triggerType: 1
          unsubscribe: '1'
    

    Create SesSendEmail Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SesSendEmail(name: string, args: SesSendEmailArgs, opts?: CustomResourceOptions);
    @overload
    def SesSendEmail(resource_name: str,
                     args: SesSendEmailArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def SesSendEmail(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     destinations: Optional[Sequence[str]] = None,
                     from_email_address: Optional[str] = None,
                     subject: Optional[str] = None,
                     attachments: Optional[Sequence[SesSendEmailAttachmentArgs]] = None,
                     bccs: Optional[Sequence[str]] = None,
                     ccs: Optional[Sequence[str]] = None,
                     reply_to_addresses: Optional[str] = None,
                     ses_send_email_id: Optional[str] = None,
                     template: Optional[SesSendEmailTemplateArgs] = None,
                     trigger_type: Optional[float] = None,
                     unsubscribe: Optional[str] = None)
    func NewSesSendEmail(ctx *Context, name string, args SesSendEmailArgs, opts ...ResourceOption) (*SesSendEmail, error)
    public SesSendEmail(string name, SesSendEmailArgs args, CustomResourceOptions? opts = null)
    public SesSendEmail(String name, SesSendEmailArgs args)
    public SesSendEmail(String name, SesSendEmailArgs args, CustomResourceOptions options)
    
    type: tencentcloud:SesSendEmail
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SesSendEmailArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SesSendEmailArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SesSendEmailArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SesSendEmailArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SesSendEmailArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SesSendEmail Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SesSendEmail resource accepts the following input properties:

    Destinations List<string>
    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.
    FromEmailAddress string
    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.
    Subject string
    Email subject.
    Attachments List<SesSendEmailAttachment>
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    Bccs List<string>
    The email address of the cc recipient can support up to 20 cc recipients.
    Ccs List<string>
    Cc recipient email address, up to 20 people can be copied.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesSendEmailId string
    ID of the resource.
    Template SesSendEmailTemplate
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    TriggerType double
    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.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    Destinations []string
    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.
    FromEmailAddress string
    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.
    Subject string
    Email subject.
    Attachments []SesSendEmailAttachmentArgs
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    Bccs []string
    The email address of the cc recipient can support up to 20 cc recipients.
    Ccs []string
    Cc recipient email address, up to 20 people can be copied.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesSendEmailId string
    ID of the resource.
    Template SesSendEmailTemplateArgs
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    TriggerType float64
    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.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    destinations List<String>
    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.
    fromEmailAddress String
    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.
    subject String
    Email subject.
    attachments List<SesSendEmailAttachment>
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs List<String>
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs List<String>
    Cc recipient email address, up to 20 people can be copied.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesSendEmailId String
    ID of the resource.
    template SesSendEmailTemplate
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    triggerType Double
    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.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    destinations string[]
    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.
    fromEmailAddress string
    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.
    subject string
    Email subject.
    attachments SesSendEmailAttachment[]
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs string[]
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs string[]
    Cc recipient email address, up to 20 people can be copied.
    replyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesSendEmailId string
    ID of the resource.
    template SesSendEmailTemplate
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    triggerType number
    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.
    unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    destinations Sequence[str]
    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.
    from_email_address str
    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.
    subject str
    Email subject.
    attachments Sequence[SesSendEmailAttachmentArgs]
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs Sequence[str]
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs Sequence[str]
    Cc recipient email address, up to 20 people can be copied.
    reply_to_addresses str
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    ses_send_email_id str
    ID of the resource.
    template SesSendEmailTemplateArgs
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    trigger_type float
    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.
    unsubscribe str
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    destinations List<String>
    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.
    fromEmailAddress String
    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.
    subject String
    Email subject.
    attachments List<Property Map>
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs List<String>
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs List<String>
    Cc recipient email address, up to 20 people can be copied.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesSendEmailId String
    ID of the resource.
    template Property Map
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    triggerType Number
    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.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SesSendEmail resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SesSendEmail Resource

    Get an existing SesSendEmail resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SesSendEmailState, opts?: CustomResourceOptions): SesSendEmail
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attachments: Optional[Sequence[SesSendEmailAttachmentArgs]] = None,
            bccs: Optional[Sequence[str]] = None,
            ccs: Optional[Sequence[str]] = None,
            destinations: Optional[Sequence[str]] = None,
            from_email_address: Optional[str] = None,
            reply_to_addresses: Optional[str] = None,
            ses_send_email_id: Optional[str] = None,
            subject: Optional[str] = None,
            template: Optional[SesSendEmailTemplateArgs] = None,
            trigger_type: Optional[float] = None,
            unsubscribe: Optional[str] = None) -> SesSendEmail
    func GetSesSendEmail(ctx *Context, name string, id IDInput, state *SesSendEmailState, opts ...ResourceOption) (*SesSendEmail, error)
    public static SesSendEmail Get(string name, Input<string> id, SesSendEmailState? state, CustomResourceOptions? opts = null)
    public static SesSendEmail get(String name, Output<String> id, SesSendEmailState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:SesSendEmail    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Attachments List<SesSendEmailAttachment>
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    Bccs List<string>
    The email address of the cc recipient can support up to 20 cc recipients.
    Ccs List<string>
    Cc recipient email address, up to 20 people can be copied.
    Destinations List<string>
    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.
    FromEmailAddress string
    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.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesSendEmailId string
    ID of the resource.
    Subject string
    Email subject.
    Template SesSendEmailTemplate
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    TriggerType double
    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.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    Attachments []SesSendEmailAttachmentArgs
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    Bccs []string
    The email address of the cc recipient can support up to 20 cc recipients.
    Ccs []string
    Cc recipient email address, up to 20 people can be copied.
    Destinations []string
    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.
    FromEmailAddress string
    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.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesSendEmailId string
    ID of the resource.
    Subject string
    Email subject.
    Template SesSendEmailTemplateArgs
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    TriggerType float64
    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.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    attachments List<SesSendEmailAttachment>
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs List<String>
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs List<String>
    Cc recipient email address, up to 20 people can be copied.
    destinations List<String>
    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.
    fromEmailAddress String
    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.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesSendEmailId String
    ID of the resource.
    subject String
    Email subject.
    template SesSendEmailTemplate
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    triggerType Double
    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.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    attachments SesSendEmailAttachment[]
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs string[]
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs string[]
    Cc recipient email address, up to 20 people can be copied.
    destinations string[]
    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.
    fromEmailAddress string
    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.
    replyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesSendEmailId string
    ID of the resource.
    subject string
    Email subject.
    template SesSendEmailTemplate
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    triggerType number
    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.
    unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    attachments Sequence[SesSendEmailAttachmentArgs]
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs Sequence[str]
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs Sequence[str]
    Cc recipient email address, up to 20 people can be copied.
    destinations Sequence[str]
    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.
    from_email_address str
    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.
    reply_to_addresses str
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    ses_send_email_id str
    ID of the resource.
    subject str
    Email subject.
    template SesSendEmailTemplateArgs
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    trigger_type float
    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.
    unsubscribe str
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    attachments List<Property Map>
    Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
    bccs List<String>
    The email address of the cc recipient can support up to 20 cc recipients.
    ccs List<String>
    Cc recipient email address, up to 20 people can be copied.
    destinations List<String>
    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.
    fromEmailAddress String
    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.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesSendEmailId String
    ID of the resource.
    subject String
    Email subject.
    template Property Map
    Template parameters for template-based sending. As Simple has been disused, Template is required.
    triggerType Number
    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.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.

    Supporting Types

    SesSendEmailAttachment, SesSendEmailAttachmentArgs

    Content string
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    FileName string
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    Content string
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    FileName string
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content String
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    fileName String
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content string
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    fileName string
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content str
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    file_name str
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content String
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    fileName String
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..

    SesSendEmailTemplate, SesSendEmailTemplateArgs

    TemplateData string
    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 correspondingvalue (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}.
    TemplateId double
    Template ID. If you do not have any template, please create one.
    TemplateData string
    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 correspondingvalue (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}.
    TemplateId float64
    Template ID. If you do not have any template, please create one.
    templateData String
    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 correspondingvalue (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}.
    templateId Double
    Template ID. If you do not have any template, please create one.
    templateData string
    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 correspondingvalue (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}.
    templateId number
    Template ID. If you do not have any template, please create one.
    template_data str
    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 correspondingvalue (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}.
    template_id float
    Template ID. If you do not have any template, please create one.
    templateData String
    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 correspondingvalue (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}.
    templateId Number
    Template ID. If you do not have any template, please create one.

    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