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>
11 <title>Mailing ID
</title>
12 <type>int unsigned
</type>
13 <required>true
</required>
17 <autoincrement>true
</autoincrement>
20 <name>domain_id
</name>
21 <title>Mailing Domain
</title>
22 <type>int unsigned
</type>
24 <table>civicrm_domain
</table>
25 <keyColumn>id
</keyColumn>
26 <labelColumn>name
</labelColumn>
28 <comment>Which site is this mailing for
</comment>
32 <name>domain_id
</name>
33 <table>civicrm_domain
</table>
35 <onDelete>SET NULL
</onDelete>
39 <name>header_id
</name>
40 <title>Mailing Header
</title>
41 <type>int unsigned
</type>
42 <comment>FK to the header component.
</comment>
45 <name>header_id
</name>
46 <table>civicrm_mailing_component
</table>
48 <onDelete>SET NULL
</onDelete>
51 <name>footer_id
</name>
52 <title>Mailing Footer
</title>
53 <type>int unsigned
</type>
54 <comment>FK to the footer component.
</comment>
57 <name>footer_id
</name>
58 <table>civicrm_mailing_component
</table>
60 <onDelete>SET NULL
</onDelete>
64 <title>Mailing Reply
</title>
65 <type>int unsigned
</type>
66 <comment>FK to the auto-responder component.
</comment>
70 <table>civicrm_mailing_component
</table>
72 <onDelete>SET NULL
</onDelete>
75 <name>unsubscribe_id
</name>
76 <title>Mailing Unsubscribe
</title>
77 <type>int unsigned
</type>
78 <comment>FK to the unsubscribe component.
</comment>
81 <name>unsubscribe_id
</name>
82 <table>civicrm_mailing_component
</table>
84 <onDelete>SET NULL
</onDelete>
87 <name>resubscribe_id
</name>
88 <title>Mailing Resubscribe
</title>
89 <type>int unsigned
</type>
92 <name>optout_id
</name>
93 <table>civicrm_mailing_component
</table>
95 <onDelete>SET NULL
</onDelete>
98 <name>optout_id
</name>
99 <title>Mailing Opt Out
</title>
100 <type>int unsigned
</type>
101 <comment>FK to the opt-out component.
</comment>
104 <name>optout_id
</name>
105 <table>civicrm_mailing_component
</table>
107 <onDelete>SET NULL
</onDelete>
111 <title>Mailing Name
</title>
114 <comment>Mailing Name.
</comment>
120 <name>mailing_type
</name>
122 <title>Mailing Type
</title>
124 <comment>differentiate between standalone mailings, A/B tests, and A/B final-winner
</comment>
126 <callback>CRM_Mailing_PseudoConstant::mailingTypes
</callback>
134 <name>from_name
</name>
135 <title>Mailing From Name
</title>
138 <comment>From Header of mailing
</comment>
144 <name>from_email
</name>
145 <title>Mailing From Email
</title>
148 <comment>From Email of mailing
</comment>
154 <name>replyto_email
</name>
157 <comment>Reply-To Email of mailing
</comment>
166 <comment>Subject of mailing
</comment>
172 <name>body_text
</name>
173 <type>longtext
</type>
174 <comment>Body of the mailing in text format.
</comment>
177 <name>body_html
</name>
178 <type>longtext
</type>
179 <comment>Body of the mailing in html format.
</comment>
182 <name>url_tracking
</name>
184 <comment>Should we track URL click-throughs for this mailing?
</comment>
186 <type>CheckBox
</type>
190 <name>forward_replies
</name>
192 <comment>Should we forward replies back to the author?
</comment>
194 <type>CheckBox
</type>
198 <name>auto_responder
</name>
200 <comment>Should we enable the auto-responder?
</comment>
202 <type>CheckBox
</type>
206 <name>open_tracking
</name>
207 <title>Track Mailing?
</title>
209 <comment>Should we track when recipients open/read this mailing?
</comment>
212 <name>is_completed
</name>
213 <title>Mailing Completed
</title>
215 <comment>Has at least one job associated with this mailing finished?
</comment>
217 <type>CheckBox
</type>
221 <name>msg_template_id
</name>
222 <title>Mailing Message Template
</title>
223 <type>int unsigned
</type>
224 <comment>FK to the message template.
</comment>
227 <name>msg_template_id
</name>
228 <table>civicrm_msg_template
</table>
230 <onDelete>SET NULL
</onDelete>
233 <name>override_verp
</name>
237 <comment>Should we overrite VERP address in Reply-To
</comment>
239 <type>CheckBox
</type>
243 <name>created_id
</name>
244 <title>Mailing Creator
</title>
245 <type>int unsigned
</type>
246 <comment>FK to Contact ID who first created this mailing
</comment>
249 <name>created_id
</name>
250 <table>civicrm_contact
</table>
252 <onDelete>SET NULL
</onDelete>
255 <name>created_date
</name>
256 <type>datetime
</type>
257 <title>Mailing Created Date
</title>
258 <comment>Date and time this mailing was created.
</comment>
261 <type>Select Date
</type>
265 <name>scheduled_id
</name>
266 <title>Scheduled By
</title>
267 <type>int unsigned
</type>
268 <comment>FK to Contact ID who scheduled this mailing
</comment>
271 <name>scheduled_id
</name>
272 <table>civicrm_contact
</table>
274 <onDelete>SET NULL
</onDelete>
277 <name>scheduled_date
</name>
278 <type>datetime
</type>
279 <title>Mailing Scheduled Date
</title>
280 <comment>Date and time this mailing was scheduled.
</comment>
284 <name>approver_id
</name>
285 <title>Approved By
</title>
286 <type>int unsigned
</type>
287 <comment>FK to Contact ID who approved this mailing
</comment>
290 <name>approver_id
</name>
291 <table>civicrm_contact
</table>
293 <onDelete>SET NULL
</onDelete>
296 <name>approval_date
</name>
297 <type>datetime
</type>
298 <title>Mailing Approved Date
</title>
299 <comment>Date and time this mailing was approved.
</comment>
303 <name>approval_status_id
</name>
304 <type>int unsigned
</type>
305 <title>Approval Status
</title>
306 <comment>The status of this mailing. Values: none, approved, rejected
</comment>
308 <optionGroupName>mail_approval_status
</optionGroupName>
316 <name>approval_note
</name>
317 <type>longtext
</type>
318 <title>Approval Note
</title>
319 <comment>Note behind the decision.
</comment>
322 <type>TextArea
</type>
326 <name>is_archived
</name>
328 <title>Is Mailing Archived?
</title>
330 <comment>Is this mailing archived?
</comment>
332 <type>CheckBox
</type>
337 <name>visibility
</name>
339 <title>Mailing Visibility
</title>
341 <default>'Public Pages'
</default>
342 <comment>In what context(s) is the mailing contents visible (online viewing)
</comment>
344 <callback>CRM_Core_SelectValues::groupVisibility
</callback>
352 <name>campaign_id
</name>
353 <type>int unsigned
</type>
354 <title>Mailing Campaign
</title>
355 <comment>The campaign for which this mailing has been initiated.
</comment>
357 <table>civicrm_campaign
</table>
358 <keyColumn>id
</keyColumn>
359 <labelColumn>title
</labelColumn>
367 <name>campaign_id
</name>
368 <table>civicrm_campaign
</table>
370 <onDelete>SET NULL
</onDelete>
373 <name>dedupe_email
</name>
375 <title>No Duplicate emails?
</title>
378 <comment>Remove duplicate emails?
</comment>
380 <type>CheckBox
</type>
384 <name>sms_provider_id
</name>
385 <title>Mailing SMS Provider
</title>
386 <type>int unsigned
</type>
393 <name>sms_provider_id
</name>
394 <table>civicrm_sms_provider
</table>
396 <onDelete>SET NULL
</onDelete>
401 <title>Mailing Hash
</title>
404 <comment>Key for validating requests related to this mailing.
</comment>
408 <name>index_hash
</name>
409 <fieldName>hash
</fieldName>
413 <name>location_type_id
</name>
414 <title>Location Type
</title>
415 <type>int unsigned
</type>
416 <comment>With email_selection_method, determines which email address to use
</comment>
418 <table>civicrm_location_type
</table>
419 <keyColumn>id
</keyColumn>
420 <labelColumn>display_name
</labelColumn>
425 <name>location_type_id
</name>
426 <table>civicrm_location_type
</table>
428 <onDelete>SET NULL
</onDelete>
432 <name>email_selection_method
</name>
435 <default>'automatic'
</default>
436 <comment>With location_type_id, determine how to choose the email address to use.
</comment>
438 <callback>CRM_Core_SelectValues::emailSelectMethods
</callback>