---
title: "Object Definition Mail"
description: "Object definition mail"
canonical: "https://docs.cm.com/mobile-marketing-cloud/email-campaigns/mails/object-definition-mail"
---

# Object Definition Mail

> Object definition mail

Source: https://docs.cm.com/mobile-marketing-cloud/email-campaigns/mails/object-definition-mail

## Object definition mail

| Property | Type | Description |
| :- | :- | :- |
| ID | Guid | The ID of the mail |
| AccountID | Guid | The accountID of the mail |
| FromAddressID | Guid | The ID of the from address you want to send with. Make sure this address is created as a sender first. |
| FromName | String | The from name to use in your mail. Leave null if you want to use the email address only. |
| ReplyToAddressID | Guid | The ID of the address you want the recipient to reply to when he clicks the reply button. Make sure this address is created as a sender first. Leave null to use the from address or the ReplyToAddress (when defined) as the reply to. |
| ReplyToAddress | String | The address you want the recipient to reply to when he clicks the reply button. This one will be overwritten when the ReplyToAddress is defined |
| ReplyToName | String | The name of the person to send a reply mail to. The ReplyToAddressID or ReplyToAddress should be defined when you fill the ReplyToName |
| ToAddress | String | The address to send your mail to |
| ToName | String | The name of the person to send your mail to |
| Ccs | Object | The Ccs for this mail. An array of email addresses needs to be passed. See the email address object definition. Keep in mind that every cc will count as an additional mail. When you have a cc it's impossible to know wheter the recipient or the person in the cc opened or clicked the mail. |
| Bccs | Object | The Bccs for this mail. An array of email addresses needs to be passed. See the email address object definition. Keep in mind that every bcc will count as an additional mail. When you have a bcc it's impossible to know wheter the recipient or the person in the bcc opened or clicked the mail. |
| Subject | String | The subject of your mail |
| HtmlBody | String | The html body of the template. This is the body that recipients with a normal e-mail client will get |
| TextBody | String | The text body of the template. This is the body that recipients will get when their e-mail client doesn't support HTML |
| Attachments | Object | The attachments for this mail. Attachments will not be returned in the response when sending a mail. See the attachment object definition. |
| CustomerReference | String | Your own reference. We will use this reference also in the status updates we will send to you when you have a webhook configured |
| CreatedOn | DateTime | When the mail was created in CET |
| CreatedOnUtc | DateTime | When the mail was created in UTC |
| ModifiedOn | DateTime | When the mail was last modified in CET |
| ModifiedOnUtc | DateTime | When the mail was last modified in UTC |

## Object definition email address

| Property | Type | Description |
| :- | :- | :- |
| EmailAddress | String | The email address |

## Object definition attachment

| Property | Type | Description |
| :- | :- | :- |
| Content | String | The base64 encoded content of the attachment |
| FileName | String | The filename of the attachment, for example: "CalendarInvite.ics". |
| ContentID | String | The ContentID can be specified for images, to reference it in your image tag in your HTML. You can use "cid:yourcontentid" in the src tag of the image to display the image inline |

## Object definition triggered mail

| Property | Type | Description |
| :- | :- | :- |
| ID | Guid | The ID of the mail |
| AccountID | Guid | The accountID of the mail |
| CampaignID | Guid | The campaignID of the mail |
| ToAddress | String | The address to send your mail to |
| ToName | String | The name of the person to send your mail to |
| Locale | String | Locale of the triggered mail |
| CustomerReference | String | Your own reference. We will use this reference also in the status updates we will send to you when you have a webhook configured |
| CustomValues | Array of objects | The custom values for this mail. See the custom values object definition. |
| Attachments | Array of objects | The attachments for this mail. Attachments will not be returned in the response when sending a mail. See the attachment object definition. |

## Object definition custom value

| Property | Type | Description |
| :- | :- | :- |
| Field | String | The field name of the custom value. This name should correspond with the field name you entered in the campaign |
| Value | String | The value for the custom field. This will be the value that will be placed in the mail |
