Create a mail address.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dm:CreateMailAddress |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccountName |
string |
Yes |
Sender's email address |
账号+@+域名 |
| ReplyAddress |
string |
No |
Reply-to address |
test1***@example.net |
| Sendtype |
string |
Yes |
Type of sending. Values:
|
batch |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| MailAddressId |
string |
Mail address ID |
15123 |
| RequestId |
string |
Request ID |
95A7D497-F8DD-4834-B81E-C1783236E55F |
Examples
Success response
JSON format
{
"MailAddressId": "15123",
"RequestId": "95A7D497-F8DD-4834-B81E-C1783236E55F"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidMailAddressName.Duplicate | The specified email address already exists. Please change to another one. | The specified email address already exists. Please change to another one. |
| 404 | InvalidUser.NotFound | The specified user does not exist. Please contact your master account to activate the Direct Mail service. | The specified user does not exist. Please contact your master account to activate the Direct Mail service. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.