1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Mailing
</base>
6 <name>civicrm_mailing
</name>
7 <comment>Stores information about a mailing.
</comment>
8 <archive>true
</archive>
9 <icon>fa-envelope-o
</icon>
11 <add>civicrm/a/#/mailing/new
</add>
12 <update>civicrm/a/#/mailing/[id]
</update>
16 <title>Mailing ID
</title>
17 <type>int unsigned
</type>
18 <required>true
</required>
22 <autoincrement>true
</autoincrement>
25 <name>domain_id
</name>
26 <title>Mailing Domain
</title>
27 <type>int unsigned
</type>
29 <table>civicrm_domain
</table>
30 <keyColumn>id
</keyColumn>
31 <labelColumn>name
</labelColumn>
33 <comment>Which site is this mailing for
</comment>
37 <name>domain_id
</name>
38 <table>civicrm_domain
</table>
40 <onDelete>SET NULL
</onDelete>
44 <name>header_id
</name>
45 <title>Mailing Header
</title>
46 <type>int unsigned
</type>
48 <table>civicrm_mailing_component
</table>
49 <keyColumn>id
</keyColumn>
50 <labelColumn>name
</labelColumn>
51 <condition>component_type =
"Header"</condition>
53 <comment>FK to the header component.
</comment>
56 <name>header_id
</name>
57 <table>civicrm_mailing_component
</table>
59 <onDelete>SET NULL
</onDelete>
62 <name>footer_id
</name>
63 <title>Mailing Footer
</title>
64 <type>int unsigned
</type>
66 <table>civicrm_mailing_component
</table>
67 <keyColumn>id
</keyColumn>
68 <labelColumn>name
</labelColumn>
69 <condition>component_type =
"Footer"</condition>
71 <comment>FK to the footer component.
</comment>
74 <name>footer_id
</name>
75 <table>civicrm_mailing_component
</table>
77 <onDelete>SET NULL
</onDelete>
81 <title>Mailing Reply
</title>
82 <type>int unsigned
</type>
83 <comment>FK to the auto-responder component.
</comment>
87 <table>civicrm_mailing_component
</table>
89 <onDelete>SET NULL
</onDelete>
92 <name>unsubscribe_id
</name>
93 <title>Mailing Unsubscribe
</title>
94 <type>int unsigned
</type>
95 <comment>FK to the unsubscribe component.
</comment>
98 <name>unsubscribe_id
</name>
99 <table>civicrm_mailing_component
</table>
101 <onDelete>SET NULL
</onDelete>
104 <name>resubscribe_id
</name>
105 <title>Mailing Resubscribe
</title>
106 <type>int unsigned
</type>
109 <name>optout_id
</name>
110 <table>civicrm_mailing_component
</table>
112 <onDelete>SET NULL
</onDelete>
115 <name>optout_id
</name>
116 <title>Mailing Opt Out
</title>
117 <type>int unsigned
</type>
118 <comment>FK to the opt-out component.
</comment>
121 <name>optout_id
</name>
122 <table>civicrm_mailing_component
</table>
124 <onDelete>SET NULL
</onDelete>
128 <uniqueName>mailing_name
</uniqueName>
129 <title>Mailing Name
</title>
132 <comment>Mailing Name.
</comment>
138 <name>mailing_type
</name>
140 <title>Mailing Type
</title>
142 <comment>differentiate between standalone mailings, A/B tests, and A/B final-winner
</comment>
144 <callback>CRM_Mailing_PseudoConstant::mailingTypes
</callback>
152 <name>from_name
</name>
153 <title>Mailing From Name
</title>
156 <comment>From Header of mailing
</comment>
162 <name>from_email
</name>
163 <title>Mailing From Email
</title>
166 <comment>From Email of mailing
</comment>
172 <name>replyto_email
</name>
175 <comment>Reply-To Email of mailing
</comment>
181 <name>template_type
</name>
182 <title>Template Type
</title>
185 <default>'traditional'
</default>
186 <required>true
</required>
187 <comment>The language/processing system used for email templates.
</comment>
189 <callback>CRM_Mailing_BAO_Mailing::getTemplateTypeNames
</callback>
193 <name>template_options
</name>
194 <title>Template Options (JSON)
</title>
195 <type>longtext
</type>
196 <comment>Advanced options used by the email templating system. (JSON encoded)
</comment>
202 <comment>Subject of mailing
</comment>
208 <name>body_text
</name>
209 <type>longtext
</type>
210 <comment>Body of the mailing in text format.
</comment>
213 <name>body_html
</name>
214 <type>longtext
</type>
215 <comment>Body of the mailing in html format.
</comment>
218 <name>url_tracking
</name>
220 <comment>Should we track URL click-throughs for this mailing?
</comment>
222 <type>CheckBox
</type>
226 <name>forward_replies
</name>
228 <comment>Should we forward replies back to the author?
</comment>
230 <type>CheckBox
</type>
234 <name>auto_responder
</name>
236 <comment>Should we enable the auto-responder?
</comment>
238 <type>CheckBox
</type>
242 <name>open_tracking
</name>
243 <title>Track Mailing?
</title>
245 <comment>Should we track when recipients open/read this mailing?
</comment>
248 <name>is_completed
</name>
249 <title>Mailing Completed
</title>
251 <comment>Has at least one job associated with this mailing finished?
</comment>
253 <type>CheckBox
</type>
257 <name>msg_template_id
</name>
258 <title>Mailing Message Template
</title>
259 <type>int unsigned
</type>
260 <comment>FK to the message template.
</comment>
263 <name>msg_template_id
</name>
264 <table>civicrm_msg_template
</table>
266 <onDelete>SET NULL
</onDelete>
269 <name>override_verp
</name>
273 <comment>Overwrite the VERP address in Reply-To
</comment>
275 <type>CheckBox
</type>
279 <name>created_id
</name>
280 <title>Mailing Creator
</title>
281 <type>int unsigned
</type>
282 <comment>FK to Contact ID who first created this mailing
</comment>
285 <name>created_id
</name>
286 <table>civicrm_contact
</table>
288 <onDelete>SET NULL
</onDelete>
291 <name>created_date
</name>
292 <type>timestamp
</type>
293 <default>NULL
</default>
294 <required>false
</required>
295 <title>Mailing Created Date
</title>
296 <comment>Date and time this mailing was created.
</comment>
299 <type>Select Date
</type>
300 <formatType>activityDateTime
</formatType>
304 <name>modified_date
</name>
305 <uniqueName>mailing_modified_date
</uniqueName>
306 <type>timestamp
</type>
307 <comment>When the mailing (or closely related entity) was created or modified or deleted.
</comment>
308 <required>false
</required>
309 <export>true
</export>
310 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>
314 <name>scheduled_id
</name>
315 <title>Scheduled By
</title>
316 <type>int unsigned
</type>
317 <comment>FK to Contact ID who scheduled this mailing
</comment>
320 <name>scheduled_id
</name>
321 <table>civicrm_contact
</table>
323 <onDelete>SET NULL
</onDelete>
326 <name>scheduled_date
</name>
327 <type>timestamp
</type>
328 <default>NULL
</default>
329 <required>false
</required>
330 <title>Mailing Scheduled Date
</title>
331 <comment>Date and time this mailing was scheduled.
</comment>
334 <type>Select Date
</type>
335 <formatType>activityDateTime
</formatType>
339 <name>approver_id
</name>
340 <title>Approved By
</title>
341 <type>int unsigned
</type>
342 <comment>FK to Contact ID who approved this mailing
</comment>
345 <name>approver_id
</name>
346 <table>civicrm_contact
</table>
348 <onDelete>SET NULL
</onDelete>
351 <name>approval_date
</name>
352 <type>timestamp
</type>
353 <default>NULL
</default>
354 <required>false
</required>
355 <title>Mailing Approved Date
</title>
356 <comment>Date and time this mailing was approved.
</comment>
359 <type>Select Date
</type>
360 <formatType>activityDateTime
</formatType>
364 <name>approval_status_id
</name>
365 <type>int unsigned
</type>
366 <title>Approval Status
</title>
367 <comment>The status of this mailing. Values: none, approved, rejected
</comment>
369 <optionGroupName>mail_approval_status
</optionGroupName>
377 <name>approval_note
</name>
378 <type>longtext
</type>
379 <title>Approval Note
</title>
380 <comment>Note behind the decision.
</comment>
383 <type>TextArea
</type>
387 <name>is_archived
</name>
389 <title>Is Mailing Archived?
</title>
391 <comment>Is this mailing archived?
</comment>
393 <type>CheckBox
</type>
398 <name>visibility
</name>
400 <title>Mailing Visibility
</title>
402 <default>'Public Pages'
</default>
403 <comment>In what context(s) is the mailing contents visible (online viewing)
</comment>
405 <callback>CRM_Core_SelectValues::groupVisibility
</callback>
413 <name>campaign_id
</name>
414 <type>int unsigned
</type>
415 <title>Mailing Campaign
</title>
416 <comment>The campaign for which this mailing has been initiated.
</comment>
418 <table>civicrm_campaign
</table>
419 <keyColumn>id
</keyColumn>
420 <labelColumn>title
</labelColumn>
428 <name>campaign_id
</name>
429 <table>civicrm_campaign
</table>
431 <onDelete>SET NULL
</onDelete>
434 <name>dedupe_email
</name>
436 <title>No Duplicate emails?
</title>
439 <comment>Remove duplicate emails?
</comment>
441 <type>CheckBox
</type>
445 <name>sms_provider_id
</name>
446 <title>Mailing SMS Provider
</title>
447 <type>int unsigned
</type>
454 <name>sms_provider_id
</name>
455 <table>civicrm_sms_provider
</table>
457 <onDelete>SET NULL
</onDelete>
462 <title>Mailing Hash
</title>
465 <comment>Key for validating requests related to this mailing.
</comment>
469 <name>index_hash
</name>
470 <fieldName>hash
</fieldName>
474 <name>location_type_id
</name>
475 <title>Location Type
</title>
476 <type>int unsigned
</type>
477 <comment>With email_selection_method, determines which email address to use
</comment>
479 <table>civicrm_location_type
</table>
480 <keyColumn>id
</keyColumn>
481 <labelColumn>display_name
</labelColumn>
486 <name>location_type_id
</name>
487 <table>civicrm_location_type
</table>
489 <onDelete>SET NULL
</onDelete>
493 <name>email_selection_method
</name>
496 <default>'automatic'
</default>
497 <comment>With location_type_id, determine how to choose the email address to use.
</comment>
499 <callback>CRM_Core_SelectValues::emailSelectMethods
</callback>
504 <name>language
</name>
505 <title>Mailing Language
</title>
508 <comment>Language of the content of the mailing. Useful for tokens.
</comment>
511 <optionGroupName>languages
</optionGroupName>
512 <keyColumn>name
</keyColumn>