diff --git a/examples/tencentcloud-ses/main.tf b/examples/tencentcloud-ses/main.tf
new file mode 100644
index 0000000000..ef105fbe0a
--- /dev/null
+++ b/examples/tencentcloud-ses/main.tf
@@ -0,0 +1,38 @@
+provider "tencentcloud" {
+ region = "ap-guangzhou"
+}
+
+resource "tencentcloud_ses_template" "example" {
+ template_name = "tf_example_ses_temp"
+ template_content {
+ html = <<-EOT
+
+
+
+
+
+ mail title
+
+
+
+
+
+ EOT
+ }
+}
+
+resource "tencentcloud_ses_domain" "domain" {
+ email_identity = "iac.cloud"
+}
+
+resource "tencentcloud_ses_email_address" "email_address" {
+ email_address = "aaa@iac-tf.cloud"
+ email_sender_name = "aaa"
+}
\ No newline at end of file
diff --git a/examples/tencentcloud-ses/version.tf b/examples/tencentcloud-ses/version.tf
new file mode 100644
index 0000000000..133d0d73e7
--- /dev/null
+++ b/examples/tencentcloud-ses/version.tf
@@ -0,0 +1,3 @@
+terraform {
+ required_version = ">= 0.12"
+}
\ No newline at end of file
diff --git a/tencentcloud/resource_tc_ses_template.go b/tencentcloud/resource_tc_ses_template.go
index 1b7b8b0d54..60b5c8f2af 100644
--- a/tencentcloud/resource_tc_ses_template.go
+++ b/tencentcloud/resource_tc_ses_template.go
@@ -3,7 +3,7 @@ Provides a resource to create a ses template.
Example Usage
-Create a ses template instance
+Create a ses text template
```hcl
resource "tencentcloud_ses_template" "example" {
@@ -14,6 +14,38 @@ resource "tencentcloud_ses_template" "example" {
}
```
+
+Create a ses html template
+
+```hcl
+resource "tencentcloud_ses_template" "example" {
+ template_name = "tf_example_ses_temp"
+ template_content {
+ html = <<-EOT
+
+
+
+
+
+ mail title
+
+
+
+
+
+ EOT
+ }
+}
+
+```
+
Import
ses template can be imported using the id, e.g.
diff --git a/website/docs/r/ses_template.html.markdown b/website/docs/r/ses_template.html.markdown
index c9be71fd7e..f74231080d 100644
--- a/website/docs/r/ses_template.html.markdown
+++ b/website/docs/r/ses_template.html.markdown
@@ -13,7 +13,7 @@ Provides a resource to create a ses template.
## Example Usage
-### Create a ses template instance
+### Create a ses text template
```hcl
resource "tencentcloud_ses_template" "example" {
@@ -24,6 +24,36 @@ resource "tencentcloud_ses_template" "example" {
}
```
+### Create a ses html template
+
+```hcl
+resource "tencentcloud_ses_template" "example" {
+ template_name = "tf_example_ses_temp"
+ template_content {
+ html = <<-EOT
+
+
+
+
+
+ mail title
+
+
+
+
+
+ EOT
+ }
+}
+```
+
## Argument Reference
The following arguments are supported: