Deletes a sender address.
According to Alibaba Cloud user types, the sending address deletion restrictions are
Individual user: Up to 10 sending addresses can be deleted within one month.
Enterprise users: Up to 10 sending addresses can be deleted within one month.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
MailAddressId | Integer | Yes | 23457 | The ID of the sender address. |
AccessKeyId | String | No | xxxx | The AccessKey ID provided to you by Alibaba Cloud. |
Action | String | No | DeleteMailAddress | The operation that you want to perform. Set the value to DeleteMailAddress. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 10A1AD70-E48E-476D-98D9-39BD92193837 | The ID of the request. |
Examples
Sample requests
http(s)://dm.aliyuncs.com/? Action=DeleteMailAddress
&MailAddressId=23457
&<Common request parameters>
Sample success responses
XML
format
<DeleteMailAddressResponse>
<RequestId>10A1AD70-E48E-476D-98D9-39BD92193837</RequestId>
</DeleteMailAddressResponse>
JSON
format
{
"RequestId":"10A1AD70-E48E-476D-98D9-39BD92193837"
}
Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidMailAddressSendType.Malformed | The specified mailAddress sendType is wrongly formed. | The error message returned because the specified email type is invalid. Log on to the console and select a valid email type. |
400 | InvalidMailAddressDomain.Malformed | The specified mailAddress domain does not exist. | The error message returned because the format of the domain name is invalid. A domain name must contain digits, letters, underscores (_), hyphens (-), and periods (.). |
400 | InvalidMailAddressStatus.Malformed | The specified mailAddress status is wrongly formed. | The error message returned because the status of the sender address is invalid. Check whether the sender address is frozen. |
For a list of error codes, visit the API Error Center.