邮件发送事件
当 Mautic 向联系人发送电子邮件时触发。
事件类型
mautic.email_on_send
事件属性
Key |
Type |
Description |
|---|---|---|
|
object |
|
|
object |
|
|
object |
联系人的个性化标记及其值的键/值对。 |
|
string |
标识唯一的电子邮件内容,包括模板。 |
|
string |
对于发送给联系人的特定电子邮件唯一。 |
|
string |
发送到联系人的 HTML 内容。 |
|
string |
发送到联系人的电子邮件的渲染主题。 |
|
array |
发送电子邮件的组件。 键 0 是组件,如果适用,键 1 是 ID。 例如,如果活动发送了电子邮件,则此值为 |
|
object |
发送到联系人的电子邮件上设置的键/值对。 |
|
string |
事件发生的日期/时间,格式为 ISO 8601。 |
Email 属性
- Key
Type
Description
idint
ID of the Email
isPublishedboolean
Published state of the Email.
dateAddedstring
Date/time of Email creation in ISO 8601 format.
createdByint|null
The ID of the User who created the Email.
createdByUserstring|null
Name of the User that created the Email.
dateModifiedstring|null
Date/time the Email was last modified in ISO 8601 format or null if not modified.
modifiedByint|null
The ID of the User who last modified the Email or null if not modified.
modifiedByUserstring|null
Name of the User that last modified the Email if applicable. Otherwise null.
namestring
Internal name of the Email.
subjectstring
Subject of the Email.
languagestring
Locale for the Email content.
categoryobject
fromAddressstring|null
A custom from address if configured.
fromNamestring|null
A custom from name if configured.
replyToAddressstring|null
A custom reply to address if configured.
useOwnerAsMailerboolean
TRUE if a Contact’s Owner should the Email’s from address and name.
customHtmlstring
HTML template for the Email.
plainTextstring|null
Plain text for the Email.
templatestring
The Mautic Theme used as the originating content.
emailTypestring
Type of Email. Options are
templateandlist- broadcast.
readCountint
The number of opens for the Email.
sentCountint
The number of sends for the Email.
revisionint
The number of edits for the Email.
dynamicContentobject[]
Array of objects that contain the Dynamic Content configured as tokens for the Email.
utmTagsobject
Key/value pairs of UTM Tags as keys. Mautic supports the following keys:
utmSource,utmMedium,utmCampaign, andutmContent. Values are strings or null.
publishUpstring|null
Date/time for publishing the Email in ISO 8601 format.
nullto consider the Email published if now is beforepublishDown, if applicable.
publishDownstring|null
Date/time for unpublishing the Email in ISO 8601 format.
nullto consider the Email published if now is afterpublishUp, if applicable.
assetAttachmentsarray
Array of Asset objects.
variantStartDatestring|null
Date/time the Email started to track A/B test statistics.
nullif the Email isn’t part of an A/B test.
variantSentCountint
The number of times sent since the last edit to an A/B test Email.
variantReadCountint
The number of times read since the last edit to an A/B test Email.
variantParentobject|null
Email object. The A test for an Email configured as an A/B test.
variantChildrenarray
Array of Email objects. The B, C, D, and so forth tests for an Email configured as an A/B test.
translationParentobject|null
Email object. The main translation of an Email configured to be a translation of another.
translationChildrenarray
Array of Email objects. The translations of an Email configured to be a translation of another.
unsubscribeFormobject|null
listsarray
headersarray
Key/value pairs of header templates configured for the Email.
Category properties
Key |
Type |
Description |
|---|---|---|
|
int |
分类的 ID。 |
|
string |
分类的标题。 |
|
string |
分类在 API 中的名称。 |
|
string |
分类的描述。 |
|
string |
分类配置的颜色的十六进制代码。 |
|
string |
分类适用的组件或频道。也可以是 |
|
string |
创建分类的用户名称。 |
|
string|null |
最后更新分类的用户的名称。如果未修改,则为 Null。 |
Asset properties
Key |
Type |
Description |
|---|---|---|
|
int |
资源的 ID。 |
|
string |
资源的标题。 |
|
string |
资源在 API 中的名称。 |
|
string |
资源的描述。 |
|
object |
|
|
int |
资源的编辑次数。 |
|
string |
资源的配置区域设置。 |
|
string |
如果是上传的文件,则为 |
|
string|null |
如果 |
|
string |
资源的文件扩展名。 |
|
string |
资源的文件类型。 |
|
int |
文件的字节大小。 |
|
int |
资源的下载总次数。 |
uniqueDownloadCount |
int |
下载过该资源的联系人的数量。 |
|
boolean |
如果为 TRUE,则表示机器人可以访问并索引该资源;否则为 FALSE。仅适用于本地资源。 |
Segment properties
- Key
Type
Description
idint
ID of the Segment.
namestring
Name of the Segment.
publicNamestring
Name displayed in the Preference Center if
isGlobalandisPreferenceCenterareTRUE.
aliasstring
API name of the Segment.
descriptionstring
Description of the Segment.
categoryobject
createdByUserstring
The name of the User that created the Segment.
modifiedByUserstring|null
The name of the User that last modified the Segment.
nullif never modified.
isGlobalboolean
TRUEif configured to be a Public Segment.FALSEotherwise.
isPreferenceCenterboolean
TRUEif configured to display in the Preference Center for Contact Segments.FALSEotherwise.
filtersarray
Array of Segment filter objects.
Segment filter properties
Key |
Type |
Description |
|---|---|---|
|
string |
Notes how the filter relates to the filter before it. Options are |
|
string |
The field type for the filter. For example, it could be a custom field filter such as |
|
string |
Object the filter’s data belongs to. Currently supported values are |
|
string |
The filter’s field type that corresponds with the underlying data. Current options are |
|
mixed |
The value of the filter. |
|
mixed |
Value that displays in the UI for a lookup type field. For example, |
|
string |
The comparison operator for the filter. Available values vary based on what the filter supports and includes |
Unsubscribe Form properties
- Key
Type
Description
idint
Form 的 ID。
namestring
Form 的标题。
aliasstring
Form 的 API 名称。
descriptionstring
Form 的描述。
categoryobject
createdByUserstring
创建 Form 的用户的姓名。
modifiedByUserstring|null
最后更新 Form 的用户的姓名。如果未修改,则为 null。
publishUpstring|null
以 ISO 8601 格式表示的发布 Form 的日期/时间。如果现在的时间早于 publishDown`(如果适用),则将视为已发布的 Form,值为 `null。
publishDownstring|null
以 ISO 8601 格式表示的取消发布 Form 的日期/时间。如果现在的时间晚于 publishUp`(如果适用),则将视为已发布的 Form,值为 `null。
cachedHtmlstring
Form 的缓存渲染 HTML。
templatestring|null
用于设置预览页面样式或自定义表单字段的自定义 Mautic 主题。请参阅 Customizing Forms。
formTypestring
已弃用。 以前指示 Form 是否为独立表单或活动。从 Mautic 7.1 开始,所有 Form 的功能都相同。Mautic 8.0 将安排删除此属性。
postActionstring
指示提交后 Form 的行为。当前支持的值包括 return、redirect 和 message。
postActionPropertystring|null
如果 postAction 为 redirect,则为重定向到联系人的 URL;如果 postAction 为 message,则为显示给联系人的消息。
inKioskModeboolean
如果 Mautic 已禁用跟踪的联系人设置 Cookie,则为 TRUE。
renderStyleboolean
如果设置为 TRUE,则会从配置的 template 中渲染 CSS 样式。
noIndexboolean
如果设置为 TRUE,则会要求搜索引擎不跟踪 Form 的预览页面。
formAttributesstring|null
添加到 <form> 标签的 HTML 属性。
fieldsarray
actionsarray
Unsubscribe Form field properties
- Key
Type
Description
idint
表单字段的 ID。
aliasstring
表单字段的 API 名称。
labelstring
表单字段的标签。
showLabelboolean
如果设置为 TRUE,则在表单的 HTML 中显示标签。
typestring
表单字段的类型。例如,email。
defaultValuemixed
表单字段的默认值。
isRequiredboolean
如果为必填项,则设置为 TRUE。
validationMessagestring|null
如果是必填字段且为空时显示的提示信息。
helpMessagestring|null
在表单的 HTML 中显示的用于指导用户填写该字段的信息。
orderint
表单字段在表单字段排序中的位置。
propertiesobject
特定于表单字段类型的属性集合。
labelAttributesstring|null
要附加到字段标签元素的 HTML 属性。
inputAttributesstring|null
要附加到字段输入元素的 HTML 属性。
containerAttributesstring|null
要附加到字段的包装元素的 HTML 属性。
leadFieldstring|null
用于将数据持久化到联系人自定义字段中的字段,当提交表单时使用。
saveResultboolean
如果设置为 FALSE,则阻止将值持久化到数据库。
isAutoFillboolean
如果设置为 TRUE,则自动填充从跟踪的联系人的个人资料中已知的值。
Unsubscribe Form action properties
Key |
Type |
Description |
|---|---|---|
|
int |
表单的 ID。 |
|
string |
表单操作的名称。 |
|
string |
表单操作的描述。 |
|
string |
表单操作的 API 名称。例如,lead.scorecontactscompanies。 |
|
int |
表单操作在执行顺序中的位置。 |
|
object |
特定于表单操作类型的属性集合。 |