---
schema_version: "1"
id: bc4b9f8e790d01677e875fa9da5b5fa076979c19c79ff02c5bd5b7623994f3ec
title: Create a Send Classification
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/creating_a_send_classification.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/creating_a_send_classification.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0b4ee9925e05be1b93c67e95a10f61335fd6c8a2269d7eae3a7e3a97ede19bbe
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Create a Send Classification

## Why Create a Send Classification

You can use a send classification to specify the sender profile, delivery profile, and CAN-SPAM classification for an email message you send via the SOAP API. This includes the From information, physical address, and other information required before an email can be sent.

## How to Create a Send Classification

Use the sample code below as a model to create your own API call.

You must create both a sender profile and a delivery profile and know the external keys for both before executing the sample code below. If you don't know the external keys for the sender profile and the delivery profiles, perform a Retrieve call to get that information and include it in the sample code below.

### Sample .NET Code

```csharp
public static void CreateSendClassification() {
    SoapClient partnerApi = new SoapClient();
    partnerApi.ClientCredentials.UserName.UserName = "username";
    partnerApi.ClientCredentials.UserName.Password = "password";
    string requestID = string.Empty;
    string status = string.Empty;
    //instantiate the SendClassification and set the general properties
    SendClassification sc = new SendClassification();
    sc.Name = "API Send Class";
    sc.Description = "Created through API";
    sc.CustomerKey = "API_SEND_CLASS";

    //set the classification type (default = Marketing/Commercial)
    //Marketing = Commercial
    //Operational = Transactional
    sc.SendClassificationType = SendClassificationTypeEnum.Marketing;
    sc.SendClassificationTypeSpecified = true;

    //set the sender profile
    SenderProfile sp = new SenderProfile();
    sp.CustomerKey = "12345";
    sc.SenderProfile = sp;
    //set the delivery profile
    DeliveryProfile dp = new DeliveryProfile();
    dp.CustomerKey = "1234";
    sc.DeliveryProfile = dp;
    //Optional - honor opt outs for transactions/operational sends (default = false)
    //sc.HonorPublicationListOptOutsForTransactionalSends = true;
    //sc.HonorPublicationListOptOutsForTransactionalSendsSpecified = true;
    //create the send classification
    CreateResult[] results = partnerApi.Create(null, new APIObject[] { sc }, out requestID, out status);
    //parse the results for objectID or error
    if (status.ToUpper() == "OK") {
        Console.WriteLine("Send Classification Created");
        Console.WriteLine("SendClassificationID: " + results[0].NewObjectID);
    } else {
        Console.WriteLine("Send Classification Create Failed");
        Console.WriteLine(results[0].StatusMessage);
    }
}
```

## See Also

- _Salesforce Help_: [Send Classifications](https://help.salesforce.com/articleView?id=mktg.mc_es_send_classifications.htm)
