Create an Email Message

Marketing Cloud has a new model for storing, finding, managing, creating, sharing, and distributing all content-related objects. Access the objects created with the new Content Builder tools using the REST API. Your existing SOAP API integrations only function with the Classic tools in the user interface.

Use the Post method to create a new email message within a Marketing Cloud account.

Ruby

PHP

Python

CSharp

Java

Documentation for the Fuel Java SDK can be found at http://salesforce-marketingcloud.github.io/FuelSDK-Java/

Properties

You can provide the following values for the props property on the object:

Email

  • Name

    • String datatype
    • Name of the object or property
  • CategoryID

    • Int32 datatype
    • Identifies the folder containing the email message
  • HTMLBody

    • String datatype
    • Contains HTML body of an email message.
  • TextBody

    • String datatype
    • Contains raw text body of a message
  • Subject

    • String datatype
    • Contains subject area information for a message
  • IsHTMLPaste

    • Boolean datatype
    • Set to true for all SDK-created emails
  • EmailType

    • String datatype
    • Specifies either HTML or TEXT email type
  • CharacterSet

    • String datatype
    • Indicates encoding used in an email message
  • CustomerKey

    • String datatype
    • User-supplied unique identifier for an object within an object type