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 <description>Mass emails sent from CiviMail.
</description>
9 <archive>true
</archive>
10 <icon>fa-envelope-o
</icon>
11 <component>CiviMail
</component>
13 <add>civicrm/a/#/mailing/new
</add>
14 <update>civicrm/a/#/mailing/[id]
</update>
18 <title>Mailing ID
</title>
19 <type>int unsigned
</type>
20 <required>true
</required>
27 <autoincrement>true
</autoincrement>
30 <name>domain_id
</name>
31 <title>Domain ID
</title>
32 <type>int unsigned
</type>
34 <table>civicrm_domain
</table>
35 <keyColumn>id
</keyColumn>
36 <labelColumn>name
</labelColumn>
38 <comment>Which site is this mailing for
</comment>
45 <name>domain_id
</name>
46 <table>civicrm_domain
</table>
48 <onDelete>SET NULL
</onDelete>
52 <name>header_id
</name>
53 <title>Header ID
</title>
54 <type>int unsigned
</type>
56 <table>civicrm_mailing_component
</table>
57 <keyColumn>id
</keyColumn>
58 <labelColumn>name
</labelColumn>
59 <condition>component_type =
"Header"</condition>
61 <comment>FK to the header component.
</comment>
67 <name>header_id
</name>
68 <table>civicrm_mailing_component
</table>
70 <onDelete>SET NULL
</onDelete>
73 <name>footer_id
</name>
74 <title>Footer ID
</title>
75 <type>int unsigned
</type>
77 <table>civicrm_mailing_component
</table>
78 <keyColumn>id
</keyColumn>
79 <labelColumn>name
</labelColumn>
80 <condition>component_type =
"Footer"</condition>
82 <comment>FK to the footer component.
</comment>
88 <name>footer_id
</name>
89 <table>civicrm_mailing_component
</table>
91 <onDelete>SET NULL
</onDelete>
95 <title>Reply ID
</title>
96 <type>int unsigned
</type>
97 <comment>FK to the auto-responder component.
</comment>
103 <name>reply_id
</name>
104 <table>civicrm_mailing_component
</table>
106 <onDelete>SET NULL
</onDelete>
109 <name>unsubscribe_id
</name>
110 <title>Unsubscribe ID
</title>
111 <type>int unsigned
</type>
112 <comment>FK to the unsubscribe component.
</comment>
114 <label>Unsubscribe
</label>
118 <name>unsubscribe_id
</name>
119 <table>civicrm_mailing_component
</table>
121 <onDelete>SET NULL
</onDelete>
124 <name>resubscribe_id
</name>
125 <title>Mailing Resubscribe
</title>
126 <type>int unsigned
</type>
129 <name>optout_id
</name>
130 <title>Opt Out ID
</title>
131 <type>int unsigned
</type>
132 <comment>FK to the opt-out component.
</comment>
134 <label>Opt Out
</label>
138 <name>optout_id
</name>
139 <table>civicrm_mailing_component
</table>
141 <onDelete>SET NULL
</onDelete>
145 <uniqueName>mailing_name
</uniqueName>
146 <title>Mailing Name
</title>
149 <comment>Mailing Name.
</comment>
155 <name>mailing_type
</name>
157 <title>Mailing Type
</title>
159 <comment>differentiate between standalone mailings, A/B tests, and A/B final-winner
</comment>
161 <callback>CRM_Mailing_PseudoConstant::mailingTypes
</callback>
169 <name>from_name
</name>
170 <title>Mailing From Name
</title>
173 <comment>From Header of mailing
</comment>
179 <name>from_email
</name>
180 <title>Mailing From Email
</title>
183 <comment>From Email of mailing
</comment>
189 <name>replyto_email
</name>
192 <comment>Reply-To Email of mailing
</comment>
195 <label>Reply-To Email
</label>
199 <name>template_type
</name>
200 <title>Template Type
</title>
203 <default>'traditional'
</default>
204 <required>true
</required>
205 <comment>The language/processing system used for email templates.
</comment>
207 <callback>CRM_Mailing_BAO_Mailing::getTemplateTypeNames
</callback>
212 <name>template_options
</name>
213 <title>Template Options (JSON)
</title>
214 <type>longtext
</type>
215 <comment>Advanced options used by the email templating system. (JSON encoded)
</comment>
216 <serialize>JSON
</serialize>
223 <comment>Subject of mailing
</comment>
226 <label>Subject
</label>
230 <name>body_text
</name>
231 <type>longtext
</type>
232 <comment>Body of the mailing in text format.
</comment>
234 <label>Body Text
</label>
238 <name>body_html
</name>
239 <type>longtext
</type>
240 <comment>Body of the mailing in html format.
</comment>
242 <label>Body HTML
</label>
246 <name>url_tracking
</name>
249 <required>true
</required>
250 <comment>Should we track URL click-throughs for this mailing?
</comment>
252 <type>CheckBox
</type>
253 <label>Url Tracking
</label>
257 <name>forward_replies
</name>
260 <required>true
</required>
261 <comment>Should we forward replies back to the author?
</comment>
263 <type>CheckBox
</type>
264 <label>Forward Replies
</label>
268 <name>auto_responder
</name>
271 <required>true
</required>
272 <comment>Should we enable the auto-responder?
</comment>
274 <type>CheckBox
</type>
275 <label>Auto Responder
</label>
279 <name>open_tracking
</name>
280 <title>Track Mailing?
</title>
283 <required>true
</required>
284 <comment>Should we track when recipients open/read this mailing?
</comment>
287 <name>is_completed
</name>
288 <title>Mailing Completed
</title>
291 <required>true
</required>
292 <comment>Has at least one job associated with this mailing finished?
</comment>
294 <type>CheckBox
</type>
298 <name>msg_template_id
</name>
299 <title>Message Template ID
</title>
300 <type>int unsigned
</type>
301 <comment>FK to the message template.
</comment>
303 <label>Message Template
</label>
307 <name>msg_template_id
</name>
308 <table>civicrm_msg_template
</table>
310 <onDelete>SET NULL
</onDelete>
313 <name>override_verp
</name>
316 <required>true
</required>
318 <comment>Overwrite the VERP address in Reply-To
</comment>
320 <type>CheckBox
</type>
321 <label>Overwrite VERP
</label>
325 <name>created_id
</name>
326 <title>Created By Contact ID
</title>
327 <type>int unsigned
</type>
328 <comment>FK to Contact ID who first created this mailing
</comment>
330 <label>Creator
</label>
334 <name>created_id
</name>
335 <table>civicrm_contact
</table>
337 <onDelete>SET NULL
</onDelete>
340 <name>created_date
</name>
341 <type>timestamp
</type>
342 <default>CURRENT_TIMESTAMP
</default>
343 <required>false
</required>
344 <title>Mailing Created Date
</title>
345 <comment>Date and time this mailing was created.
</comment>
348 <type>Select Date
</type>
349 <formatType>activityDateTime
</formatType>
353 <name>modified_date
</name>
354 <uniqueName>mailing_modified_date
</uniqueName>
355 <type>timestamp
</type>
356 <comment>When the mailing (or closely related entity) was created or modified or deleted.
</comment>
357 <required>false
</required>
358 <export>true
</export>
359 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>
361 <label>Modified Date
</label>
363 <readonly>true
</readonly>
367 <name>scheduled_id
</name>
368 <title>Scheduled By Contact ID
</title>
369 <type>int unsigned
</type>
370 <comment>FK to Contact ID who scheduled this mailing
</comment>
372 <label>Scheduled By
</label>
376 <name>scheduled_id
</name>
377 <table>civicrm_contact
</table>
379 <onDelete>SET NULL
</onDelete>
382 <name>scheduled_date
</name>
383 <type>timestamp
</type>
384 <default>NULL
</default>
385 <required>false
</required>
386 <title>Mailing Scheduled Date
</title>
387 <comment>Date and time this mailing was scheduled.
</comment>
390 <type>Select Date
</type>
391 <formatType>activityDateTime
</formatType>
395 <name>approver_id
</name>
396 <title>Approved By Contact ID
</title>
397 <type>int unsigned
</type>
398 <comment>FK to Contact ID who approved this mailing
</comment>
400 <label>Approved By
</label>
404 <name>approver_id
</name>
405 <table>civicrm_contact
</table>
407 <onDelete>SET NULL
</onDelete>
410 <name>approval_date
</name>
411 <type>timestamp
</type>
412 <default>NULL
</default>
413 <required>false
</required>
414 <title>Mailing Approved Date
</title>
415 <comment>Date and time this mailing was approved.
</comment>
418 <type>Select Date
</type>
419 <formatType>activityDateTime
</formatType>
423 <name>approval_status_id
</name>
424 <type>int unsigned
</type>
425 <title>Approval Status
</title>
426 <comment>The status of this mailing. Values: none, approved, rejected
</comment>
428 <optionGroupName>mail_approval_status
</optionGroupName>
436 <name>approval_note
</name>
437 <type>longtext
</type>
438 <title>Approval Note
</title>
439 <comment>Note behind the decision.
</comment>
442 <type>TextArea
</type>
446 <name>is_archived
</name>
448 <title>Is Mailing Archived?
</title>
450 <required>true
</required>
451 <comment>Is this mailing archived?
</comment>
453 <type>CheckBox
</type>
458 <name>visibility
</name>
460 <title>Mailing Visibility
</title>
462 <default>'Public Pages'
</default>
463 <comment>In what context(s) is the mailing contents visible (online viewing)
</comment>
465 <callback>CRM_Core_SelectValues::groupVisibility
</callback>
473 <name>campaign_id
</name>
474 <component>CiviCampaign
</component>
475 <type>int unsigned
</type>
476 <title>Campaign ID
</title>
477 <comment>The campaign for which this mailing has been initiated.
</comment>
480 <type>EntityRef
</type>
481 <label>Campaign
</label>
484 <table>civicrm_campaign
</table>
485 <keyColumn>id
</keyColumn>
486 <labelColumn>title
</labelColumn>
487 <prefetch>FALSE
</prefetch>
491 <name>campaign_id
</name>
492 <table>civicrm_campaign
</table>
494 <onDelete>SET NULL
</onDelete>
497 <name>dedupe_email
</name>
499 <title>No Duplicate emails?
</title>
501 <required>true
</required>
503 <comment>Remove duplicate emails?
</comment>
505 <type>CheckBox
</type>
509 <name>sms_provider_id
</name>
510 <title>SMS Provider ID
</title>
511 <type>int unsigned
</type>
515 <label>SMS Provider
</label>
519 <name>sms_provider_id
</name>
520 <table>civicrm_sms_provider
</table>
522 <onDelete>SET NULL
</onDelete>
527 <title>Mailing Hash
</title>
530 <comment>Key for validating requests related to this mailing.
</comment>
531 <readonly>true
</readonly>
535 <name>index_hash
</name>
536 <fieldName>hash
</fieldName>
540 <name>location_type_id
</name>
541 <title>Location Type ID
</title>
542 <type>int unsigned
</type>
543 <comment>With email_selection_method, determines which email address to use
</comment>
545 <table>civicrm_location_type
</table>
546 <keyColumn>id
</keyColumn>
547 <labelColumn>display_name
</labelColumn>
550 <label>Location Type
</label>
555 <name>location_type_id
</name>
556 <table>civicrm_location_type
</table>
558 <onDelete>SET NULL
</onDelete>
562 <name>email_selection_method
</name>
565 <default>'automatic'
</default>
566 <comment>With location_type_id, determine how to choose the email address to use.
</comment>
568 <callback>CRM_Core_SelectValues::emailSelectMethods
</callback>
571 <label>Email Selection Method
</label>
576 <name>language
</name>
577 <title>Mailing Language
</title>
580 <comment>Language of the content of the mailing. Useful for tokens.
</comment>
583 <optionGroupName>languages
</optionGroupName>
584 <keyColumn>name
</keyColumn>