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>from_name
</name>
121 <title>Mailing From Name
</title>
124 <comment>From Header of mailing
</comment>
130 <name>from_email
</name>
131 <title>Mailing From Email
</title>
134 <comment>From Email of mailing
</comment>
140 <name>replyto_email
</name>
143 <comment>Reply-To Email of mailing
</comment>
152 <comment>Subject of mailing
</comment>
158 <name>body_text
</name>
159 <type>longtext
</type>
160 <comment>Body of the mailing in text format.
</comment>
163 <name>body_html
</name>
164 <type>longtext
</type>
165 <comment>Body of the mailing in html format.
</comment>
168 <name>url_tracking
</name>
170 <comment>Should we track URL click-throughs for this mailing?
</comment>
172 <type>CheckBox
</type>
176 <name>forward_replies
</name>
178 <comment>Should we forward replies back to the author?
</comment>
180 <type>CheckBox
</type>
184 <name>auto_responder
</name>
186 <comment>Should we enable the auto-responder?
</comment>
188 <type>CheckBox
</type>
192 <name>open_tracking
</name>
194 <comment>Should we track when recipients open/read this mailing?
</comment>
197 <name>is_completed
</name>
199 <comment>Has at least one job associated with this mailing finished?
</comment>
201 <type>CheckBox
</type>
205 <name>msg_template_id
</name>
206 <type>int unsigned
</type>
207 <comment>FK to the message template.
</comment>
210 <name>msg_template_id
</name>
211 <table>civicrm_msg_template
</table>
213 <onDelete>SET NULL
</onDelete>
216 <name>override_verp
</name>
220 <comment>Should we overrite VERP address in Reply-To
</comment>
222 <type>CheckBox
</type>
226 <name>created_id
</name>
227 <type>int unsigned
</type>
228 <comment>FK to Contact ID who first created this mailing
</comment>
231 <name>created_id
</name>
232 <table>civicrm_contact
</table>
234 <onDelete>SET NULL
</onDelete>
237 <name>created_date
</name>
238 <type>datetime
</type>
239 <title>Mailing Created Date
</title>
240 <comment>Date and time this mailing was created.
</comment>
243 <type>Select Date
</type>
247 <name>scheduled_id
</name>
248 <type>int unsigned
</type>
249 <comment>FK to Contact ID who scheduled this mailing
</comment>
252 <name>scheduled_id
</name>
253 <table>civicrm_contact
</table>
255 <onDelete>SET NULL
</onDelete>
258 <name>scheduled_date
</name>
259 <type>datetime
</type>
260 <title>Mailing Scheduled Date
</title>
261 <comment>Date and time this mailing was scheduled.
</comment>
265 <name>approver_id
</name>
266 <type>int unsigned
</type>
267 <comment>FK to Contact ID who approved this mailing
</comment>
270 <name>approver_id
</name>
271 <table>civicrm_contact
</table>
273 <onDelete>SET NULL
</onDelete>
276 <name>approval_date
</name>
277 <type>datetime
</type>
278 <title>Mailing Approved Date
</title>
279 <comment>Date and time this mailing was approved.
</comment>
283 <name>approval_status_id
</name>
284 <type>int unsigned
</type>
285 <title>Approval Status
</title>
286 <comment>The status of this mailing. Values: none, approved, rejected
</comment>
288 <optionGroupName>mail_approval_status
</optionGroupName>
296 <name>approval_note
</name>
297 <type>longtext
</type>
298 <title>Approval Note
</title>
299 <comment>Note behind the decision.
</comment>
302 <type>TextArea
</type>
306 <name>is_archived
</name>
309 <comment>Is this mailing archived?
</comment>
311 <type>CheckBox
</type>
316 <name>visibility
</name>
319 <default>'Public Pages'
</default>
320 <comment>In what context(s) is the mailing contents visible (online viewing)
</comment>
322 <callback>CRM_Core_SelectValues::groupVisibility
</callback>
330 <name>campaign_id
</name>
331 <type>int unsigned
</type>
332 <comment>The campaign for which this mailing has been initiated.
</comment>
334 <table>civicrm_campaign
</table>
335 <keyColumn>id
</keyColumn>
336 <labelColumn>title
</labelColumn>
344 <name>campaign_id
</name>
345 <table>civicrm_campaign
</table>
347 <onDelete>SET NULL
</onDelete>
350 <name>dedupe_email
</name>
354 <comment>Remove duplicate emails?
</comment>
356 <type>CheckBox
</type>
360 <name>sms_provider_id
</name>
361 <title>Mailing SMS Provider
</title>
362 <type>int unsigned
</type>
369 <name>sms_provider_id
</name>
370 <table>civicrm_sms_provider
</table>
372 <onDelete>SET NULL
</onDelete>
377 <title>Mailing Hash
</title>
380 <comment>Key for validating requests related to this mailing.
</comment>
384 <name>index_hash
</name>
385 <fieldName>hash
</fieldName>