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>
193 <title>Track Mailing?
</title>
195 <comment>Should we track when recipients open/read this mailing?
</comment>
198 <name>is_completed
</name>
199 <title>Mailing Completed
</title>
201 <comment>Has at least one job associated with this mailing finished?
</comment>
203 <type>CheckBox
</type>
207 <name>msg_template_id
</name>
208 <title>Mailing Message Template
</title>
209 <type>int unsigned
</type>
210 <comment>FK to the message template.
</comment>
213 <name>msg_template_id
</name>
214 <table>civicrm_msg_template
</table>
216 <onDelete>SET NULL
</onDelete>
219 <name>override_verp
</name>
223 <comment>Should we overrite VERP address in Reply-To
</comment>
225 <type>CheckBox
</type>
229 <name>created_id
</name>
230 <title>Mailing Creator
</title>
231 <type>int unsigned
</type>
232 <comment>FK to Contact ID who first created this mailing
</comment>
235 <name>created_id
</name>
236 <table>civicrm_contact
</table>
238 <onDelete>SET NULL
</onDelete>
241 <name>created_date
</name>
242 <type>datetime
</type>
243 <title>Mailing Created Date
</title>
244 <comment>Date and time this mailing was created.
</comment>
247 <type>Select Date
</type>
251 <name>scheduled_id
</name>
252 <title>Scheduled By
</title>
253 <type>int unsigned
</type>
254 <comment>FK to Contact ID who scheduled this mailing
</comment>
257 <name>scheduled_id
</name>
258 <table>civicrm_contact
</table>
260 <onDelete>SET NULL
</onDelete>
263 <name>scheduled_date
</name>
264 <type>datetime
</type>
265 <title>Mailing Scheduled Date
</title>
266 <comment>Date and time this mailing was scheduled.
</comment>
270 <name>approver_id
</name>
271 <title>Approved By
</title>
272 <type>int unsigned
</type>
273 <comment>FK to Contact ID who approved this mailing
</comment>
276 <name>approver_id
</name>
277 <table>civicrm_contact
</table>
279 <onDelete>SET NULL
</onDelete>
282 <name>approval_date
</name>
283 <type>datetime
</type>
284 <title>Mailing Approved Date
</title>
285 <comment>Date and time this mailing was approved.
</comment>
289 <name>approval_status_id
</name>
290 <type>int unsigned
</type>
291 <title>Approval Status
</title>
292 <comment>The status of this mailing. Values: none, approved, rejected
</comment>
294 <optionGroupName>mail_approval_status
</optionGroupName>
302 <name>approval_note
</name>
303 <type>longtext
</type>
304 <title>Approval Note
</title>
305 <comment>Note behind the decision.
</comment>
308 <type>TextArea
</type>
312 <name>is_archived
</name>
314 <title>Is Mailing Archived?
</title>
316 <comment>Is this mailing archived?
</comment>
318 <type>CheckBox
</type>
323 <name>visibility
</name>
325 <title>Mailing Visibility
</title>
327 <default>'Public Pages'
</default>
328 <comment>In what context(s) is the mailing contents visible (online viewing)
</comment>
330 <callback>CRM_Core_SelectValues::groupVisibility
</callback>
338 <name>campaign_id
</name>
339 <type>int unsigned
</type>
340 <title>Mailing Campaign
</title>
341 <comment>The campaign for which this mailing has been initiated.
</comment>
343 <table>civicrm_campaign
</table>
344 <keyColumn>id
</keyColumn>
345 <labelColumn>title
</labelColumn>
353 <name>campaign_id
</name>
354 <table>civicrm_campaign
</table>
356 <onDelete>SET NULL
</onDelete>
359 <name>dedupe_email
</name>
361 <title>No Duplicate emails?
</title>
364 <comment>Remove duplicate emails?
</comment>
366 <type>CheckBox
</type>
370 <name>sms_provider_id
</name>
371 <title>Mailing SMS Provider
</title>
372 <type>int unsigned
</type>
379 <name>sms_provider_id
</name>
380 <table>civicrm_sms_provider
</table>
382 <onDelete>SET NULL
</onDelete>
387 <title>Mailing Hash
</title>
390 <comment>Key for validating requests related to this mailing.
</comment>
394 <name>index_hash
</name>
395 <fieldName>hash
</fieldName>
399 <name>location_type_id
</name>
400 <title>Location Type
</title>
401 <type>int unsigned
</type>
402 <comment>With email_selection_method, determines which email address to use
</comment>
404 <table>civicrm_location_type
</table>
405 <keyColumn>id
</keyColumn>
406 <labelColumn>display_name
</labelColumn>
411 <name>location_type_id
</name>
412 <table>civicrm_location_type
</table>
414 <onDelete>SET NULL
</onDelete>
418 <name>email_selection_method
</name>
421 <default>'automatic'
</default>
422 <comment>With location_type_id, determine how to choose the email address to use.
</comment>
424 <callback>CRM_Core_SelectValues::emailSelectMethods
</callback>