public class SendEmailRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
SendEmailRequest()  | 
SendEmailRequest(SendEmailRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Attachment[] | 
getAttachments()
Get Parameters for the attachments to be sent. 
 | 
String[] | 
getBcc()
Get 
 | 
String[] | 
getCc()
Get 
 | 
String[] | 
getDestination()
Get Recipient email addresses. 
 | 
String | 
getFromEmailAddress()
Get Sender address. 
 | 
String | 
getReplyToAddresses()
Get Reply-to address. 
 | 
Simple | 
getSimple()
Get Disused 
 | 
String | 
getSubject()
Get Email subject. 
 | 
Template | 
getTemplate()
Get Template parameters for template-based sending. 
 | 
Long | 
getTriggerType()
Get Email triggering type. 
 | 
String | 
getUnsubscribe()
Get Unsubscribe link option. 
 | 
void | 
setAttachments(Attachment[] Attachments)
Set Parameters for the attachments to be sent. 
 | 
void | 
setBcc(String[] Bcc)
Set 
 | 
void | 
setCc(String[] Cc)
Set 
 | 
void | 
setDestination(String[] Destination)
Set Recipient email addresses. 
 | 
void | 
setFromEmailAddress(String FromEmailAddress)
Set Sender address. 
 | 
void | 
setReplyToAddresses(String ReplyToAddresses)
Set Reply-to address. 
 | 
void | 
setSimple(Simple Simple)
Set Disused 
 | 
void | 
setSubject(String Subject)
Set Email subject. 
 | 
void | 
setTemplate(Template Template)
Set Template parameters for template-based sending. 
 | 
void | 
setTriggerType(Long TriggerType)
Set Email triggering type. 
 | 
void | 
setUnsubscribe(String Unsubscribe)
Set Unsubscribe link option. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic SendEmailRequest()
public SendEmailRequest(SendEmailRequest source)
public String getFromEmailAddress()
public void setFromEmailAddress(String FromEmailAddress)
FromEmailAddress - Sender address. Enter a sender address, for example, [email protected].
To display the sender name, enter the address in the following format: 
Sender public String[] getDestination()
public void setDestination(String[] Destination)
Destination - 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.public String getSubject()
public void setSubject(String Subject)
Subject - Email subject.public String getReplyToAddresses()
public void setReplyToAddresses(String ReplyToAddresses)
ReplyToAddresses - 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.public String[] getCc()
public void setCc(String[] Cc)
Cc - public String[] getBcc()
public void setBcc(String[] Bcc)
Bcc - public Template getTemplate()
public void setTemplate(Template Template)
Template - Template parameters for template-based sending. As `Simple` has been disused, `Template` is required.public Simple getSimple()
public void setSimple(Simple Simple)
Simple - Disusedpublic Attachment[] getAttachments()
public void setAttachments(Attachment[] Attachments)
Attachments - 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.public String getUnsubscribe()
public void setUnsubscribe(String Unsubscribe)
Unsubscribe - 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`: Thaipublic Long getTriggerType()
public void setTriggerType(Long TriggerType)
TriggerType - 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.Copyright © 2025. All rights reserved.