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 <type>int unsigned
</type>
12 <required>true
</required>
16 <autoincrement>true
</autoincrement>
19 <name>domain_id
</name>
20 <type>int unsigned
</type>
21 <comment>Which site is this mailing for
</comment>
25 <name>domain_id
</name>
26 <table>civicrm_domain
</table>
28 <onDelete>SET NULL
</onDelete>
32 <name>header_id
</name>
33 <type>int unsigned
</type>
34 <comment>FK to the header component.
</comment>
37 <name>header_id
</name>
38 <table>civicrm_mailing_component
</table>
40 <onDelete>SET NULL
</onDelete>
43 <name>footer_id
</name>
44 <type>int unsigned
</type>
45 <comment>FK to the footer component.
</comment>
48 <name>footer_id
</name>
49 <table>civicrm_mailing_component
</table>
51 <onDelete>SET NULL
</onDelete>
55 <type>int unsigned
</type>
56 <comment>FK to the auto-responder component.
</comment>
60 <table>civicrm_mailing_component
</table>
62 <onDelete>SET NULL
</onDelete>
65 <name>unsubscribe_id
</name>
66 <type>int unsigned
</type>
67 <comment>FK to the unsubscribe component.
</comment>
70 <name>unsubscribe_id
</name>
71 <table>civicrm_mailing_component
</table>
73 <onDelete>SET NULL
</onDelete>
76 <name>resubscribe_id
</name>
77 <type>int unsigned
</type>
80 <name>optout_id
</name>
81 <table>civicrm_mailing_component
</table>
83 <onDelete>SET NULL
</onDelete>
86 <name>optout_id
</name>
87 <type>int unsigned
</type>
88 <comment>FK to the opt-out component.
</comment>
91 <name>optout_id
</name>
92 <table>civicrm_mailing_component
</table>
94 <onDelete>SET NULL
</onDelete>
100 <comment>Mailing Name.
</comment>
106 <name>from_name
</name>
109 <comment>From Header of mailing
</comment>
115 <name>from_email
</name>
118 <comment>From Email of mailing
</comment>
124 <name>replyto_email
</name>
127 <comment>Reply-To Email of mailing
</comment>
136 <comment>Subject of mailing
</comment>
142 <name>body_text
</name>
143 <type>longtext
</type>
144 <comment>Body of the mailing in text format.
</comment>
147 <name>body_html
</name>
148 <type>longtext
</type>
149 <comment>Body of the mailing in html format.
</comment>
152 <name>url_tracking
</name>
154 <comment>Should we track URL click-throughs for this mailing?
</comment>
156 <type>CheckBox
</type>
160 <name>forward_replies
</name>
162 <comment>Should we forward replies back to the author?
</comment>
164 <type>CheckBox
</type>
168 <name>auto_responder
</name>
170 <comment>Should we enable the auto-responder?
</comment>
172 <type>CheckBox
</type>
176 <name>open_tracking
</name>
178 <comment>Should we track when recipients open/read this mailing?
</comment>
181 <name>is_completed
</name>
183 <comment>Has at least one job associated with this mailing finished?
</comment>
185 <type>CheckBox
</type>
189 <name>msg_template_id
</name>
190 <type>int unsigned
</type>
191 <comment>FK to the message template.
</comment>
194 <name>msg_template_id
</name>
195 <table>civicrm_msg_template
</table>
197 <onDelete>SET NULL
</onDelete>
200 <name>override_verp
</name>
204 <comment>Should we overrite VERP address in Reply-To
</comment>
206 <type>CheckBox
</type>
210 <name>created_id
</name>
211 <type>int unsigned
</type>
212 <comment>FK to Contact ID who first created this mailing
</comment>
215 <name>created_id
</name>
216 <table>civicrm_contact
</table>
218 <onDelete>SET NULL
</onDelete>
221 <name>created_date
</name>
222 <type>datetime
</type>
223 <title>Mailing Created Date
</title>
224 <comment>Date and time this mailing was created.
</comment>
227 <type>Select Date
</type>
231 <name>scheduled_id
</name>
232 <type>int unsigned
</type>
233 <comment>FK to Contact ID who scheduled this mailing
</comment>
236 <name>scheduled_id
</name>
237 <table>civicrm_contact
</table>
239 <onDelete>SET NULL
</onDelete>
242 <name>scheduled_date
</name>
243 <type>datetime
</type>
244 <title>Mailing Scheduled Date
</title>
245 <comment>Date and time this mailing was scheduled.
</comment>
249 <name>approver_id
</name>
250 <type>int unsigned
</type>
251 <comment>FK to Contact ID who approved this mailing
</comment>
254 <name>approver_id
</name>
255 <table>civicrm_contact
</table>
257 <onDelete>SET NULL
</onDelete>
260 <name>approval_date
</name>
261 <type>datetime
</type>
262 <title>Mailing Approved Date
</title>
263 <comment>Date and time this mailing was approved.
</comment>
267 <name>approval_status_id
</name>
268 <type>int unsigned
</type>
269 <title>Approval Status
</title>
270 <comment>The status of this mailing. Values: none, approved, rejected
</comment>
272 <optionGroupName>mail_approval_status
</optionGroupName>
280 <name>approval_note
</name>
281 <type>longtext
</type>
282 <title>Approval Note
</title>
283 <comment>Note behind the decision.
</comment>
286 <type>TextArea
</type>
290 <name>is_archived
</name>
293 <comment>Is this mailing archived?
</comment>
295 <type>CheckBox
</type>
300 <name>visibility
</name>
303 <default>'User and User Admin Only'
</default>
304 <comment>In what context(s) is the mailing contents visible (online viewing)
</comment>
306 <callback>CRM_Core_SelectValues::groupVisibility
</callback>
314 <name>campaign_id
</name>
315 <type>int unsigned
</type>
316 <comment>The campaign for which this mailing has been initiated.
</comment>
318 <table>civicrm_campaign
</table>
319 <keyColumn>id
</keyColumn>
320 <labelColumn>title
</labelColumn>
328 <name>campaign_id
</name>
329 <table>civicrm_campaign
</table>
331 <onDelete>SET NULL
</onDelete>
334 <name>dedupe_email
</name>
338 <comment>Remove duplicate emails?
</comment>
340 <type>CheckBox
</type>
344 <name>sms_provider_id
</name>
345 <type>int unsigned
</type>
352 <name>sms_provider_id
</name>
353 <table>civicrm_sms_provider
</table>
355 <onDelete>SET NULL
</onDelete>
360 <title>Mailing Hash
</title>
363 <comment>Key for validating requests related to this mailing.
</comment>
367 <name>index_hash
</name>
368 <fieldName>hash
</fieldName>