-- +--------------------------------------------------------------------+ -- | CiviCRM version 4.4 | -- +--------------------------------------------------------------------+ -- | Copyright CiviCRM LLC (c) 2004-2013 | -- +--------------------------------------------------------------------+ -- | This file is a part of CiviCRM. | -- | | -- | CiviCRM is free software; you can copy, modify, and distribute it | -- | under the terms of the GNU Affero General Public License | -- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | -- | | -- | CiviCRM is distributed in the hope that it will be useful, but | -- | WITHOUT ANY WARRANTY; without even the implied warranty of | -- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | -- | See the GNU Affero General Public License for more details. | -- | | -- | You should have received a copy of the GNU Affero General Public | -- | License and the CiviCRM Licensing Exception along | -- | with this program; if not, contact CiviCRM LLC | -- | at info[AT]civicrm[DOT]org. If you have questions about the | -- | GNU Affero General Public License or the licensing of CiviCRM, | -- | see the CiviCRM license FAQ at http://civicrm.org/licensing | -- +--------------------------------------------------------------------+ -- -- Generated from {$smarty.template} -- {$generated} -- {* not sure how to define the below in Smarty, so doing it in PHP instead *} {php} $ogNames = array( 'case' => ts('Message Template Workflow for Cases', array('escape' => 'sql')), 'contribution' => ts('Message Template Workflow for Contributions', array('escape' => 'sql')), 'event' => ts('Message Template Workflow for Events', array('escape' => 'sql')), 'friend' => ts('Message Template Workflow for Tell-a-Friend', array('escape' => 'sql')), 'membership' => ts('Message Template Workflow for Memberships', array('escape' => 'sql')), 'meta' => ts('Message Template Workflow for Meta Templates', array('escape' => 'sql')), 'pledge' => ts('Message Template Workflow for Pledges', array('escape' => 'sql')), 'uf' => ts('Message Template Workflow for Profiles', array('escape' => 'sql')), 'petition' => ts('Message Template Workflow for Petition', array('escape' => 'sql')), ); $ovNames = array( 'case' => array( 'case_activity' => ts('Cases - Send Copy of an Activity', array('escape' => 'sql')), ), 'contribution' => array( 'contribution_dupalert' => ts('Contributions - Duplicate Organization Alert', array('escape' => 'sql')), 'contribution_offline_receipt' => ts('Contributions - Receipt (off-line)', array('escape' => 'sql')), 'contribution_online_receipt' => ts('Contributions - Receipt (on-line)', array('escape' => 'sql')), 'contribution_recurring_notify' => ts('Contributions - Recurring Start and End Notification', array('escape' => 'sql')), 'contribution_recurring_cancelled' => ts('Contributions - Recurring Cancellation Notification', array('escape' => 'sql')), 'contribution_recurring_billing' => ts('Contributions - Recurring Billing Updates', array('escape' => 'sql')), 'contribution_recurring_edit' => ts('Contributions - Recurring Updates', array('escape' => 'sql')), 'pcp_notify' => ts('Personal Campaign Pages - Admin Notification', array('escape' => 'sql')), 'pcp_status_change' => ts('Personal Campaign Pages - Supporter Status Change Notification', array('escape' => 'sql')), 'pcp_supporter_notify' => ts('Personal Campaign Pages - Supporter Welcome', array('escape' => 'sql')), ), 'event' => array( 'event_offline_receipt' => ts('Events - Registration Confirmation and Receipt (off-line)', array('escape' => 'sql')), 'event_online_receipt' => ts('Events - Registration Confirmation and Receipt (on-line)', array('escape' => 'sql')), 'event_registration_receipt' => ts('Events - Receipt only', array('escape' => 'sql')), 'participant_cancelled' => ts('Events - Registration Cancellation Notice', array('escape' => 'sql')), 'participant_confirm' => ts('Events - Registration Confirmation Invite', array('escape' => 'sql')), 'participant_expired' => ts('Events - Pending Registration Expiration Notice', array('escape' => 'sql')), ), 'friend' => array( 'friend' => ts('Tell-a-Friend Email', array('escape' => 'sql')), ), 'membership' => array( 'membership_offline_receipt' => ts('Memberships - Signup and Renewal Receipts (off-line)', array('escape' => 'sql')), 'membership_online_receipt' => ts('Memberships - Receipt (on-line)', array('escape' => 'sql')), 'membership_autorenew_cancelled' => ts('Memberships - Auto-renew Cancellation Notification', array('escape' => 'sql')), 'membership_autorenew_billing' => ts('Memberships - Auto-renew Billing Updates', array('escape' => 'sql')), ), 'meta' => array( 'test_preview' => ts('Test-drive - Receipt Header', array('escape' => 'sql')), ), 'pledge' => array( 'pledge_acknowledge' => ts('Pledges - Acknowledgement', array('escape' => 'sql')), 'pledge_reminder' => ts('Pledges - Payment Reminder', array('escape' => 'sql')), ), 'uf' => array( 'uf_notify' => ts('Profiles - Admin Notification', array('escape' => 'sql')), ), 'petition' => array( 'petition_sign' => ts('Petition - signature added', array('escape' => 'sql')), 'petition_confirmation_needed' => ts('Petition - need verification', array('escape' => 'sql')), ), ); $this->assign('ogNames', $ogNames); $this->assign('ovNames', $ovNames); {/php} INSERT INTO civicrm_option_group (name, {localize field='title'}title{/localize}, {localize field='description'}description{/localize}, is_reserved, is_active) VALUES {foreach from=$ogNames key=name item=description name=for_groups} ('msg_tpl_workflow_{$name}', {localize}'{$description}'{/localize}, {localize}'{$description}'{/localize}, 1, 1) {if $smarty.foreach.for_groups.last};{else},{/if} {/foreach} {foreach from=$ogNames key=name item=description} SELECT @tpl_ogid_{$name} := MAX(id) FROM civicrm_option_group WHERE name = 'msg_tpl_workflow_{$name}'; {/foreach} INSERT INTO civicrm_option_value (option_group_id, name, {localize field='label'}label{/localize}, value, weight) VALUES {foreach from=$ovNames key=gName item=ovs name=for_groups} {foreach from=$ovs key=vName item=label name=for_values} (@tpl_ogid_{$gName}, '{$vName}', {localize}'{$label}'{/localize}, {$smarty.foreach.for_values.iteration}, {$smarty.foreach.for_values.iteration}) {if $smarty.foreach.for_groups.last and $smarty.foreach.for_values.last};{else},{/if} {/foreach} {/foreach} {foreach from=$ovNames key=gName item=ovs} {foreach from=$ovs key=vName item=label} SELECT @tpl_ovid_{$vName} := MAX(id) FROM civicrm_option_value WHERE option_group_id = @tpl_ogid_{$gName} AND name = '{$vName}'; {/foreach} {/foreach} INSERT INTO civicrm_msg_template (msg_title, msg_subject, msg_text, msg_html, workflow_id, is_default, is_reserved) VALUES {foreach from=$ovNames key=gName item=ovs name=for_groups} {foreach from=$ovs key=vName item=title name=for_values} {fetch assign=subject file="`$smarty.const.SMARTY_DIR`/../../xml/templates/message_templates/`$vName`_subject.tpl"} {fetch assign=text file="`$smarty.const.SMARTY_DIR`/../../xml/templates/message_templates/`$vName`_text.tpl"} {fetch assign=html file="`$smarty.const.SMARTY_DIR`/../../xml/templates/message_templates/`$vName`_html.tpl"} ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', @tpl_ovid_{$vName}, 1, 0), ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', @tpl_ovid_{$vName}, 0, 1) {if $smarty.foreach.for_groups.last and $smarty.foreach.for_values.last};{else},{/if} {/foreach} {/foreach} {* Sample CiviMail Newsletter message template *} INSERT INTO civicrm_msg_template (msg_title, msg_subject, msg_text, msg_html, workflow_id, is_default, is_reserved) VALUES ('Sample CiviMail Newsletter Template', 'Sample CiviMail Newsletter', '', '
Replace this logo with the URL to your own     Your Newsletter Title
Greetings {literal}{contact.display_name}{/literal},

This is a sample template designed to help you get started creating and sending your own CiviMail messages. This template uses an HTML layout that is generally compatible with the wide variety of email clients that your recipients might be using (e.g. Gmail, Outlook, Yahoo, etc.).

You can select this "Sample CiviMail Newsletter Template" from the "Use Template" drop-down in Step 3 of creating a mailing, and customize it to your needs. Then check the "Save as New Template" box on the bottom the page to save your customized version for use in future mailings.

The logo you use must be uploaded to your server. Copy and paste the URL path to the logo into the <img src= tag in the HTML at the top. Click "Source" or the Image button if you are using the text editor.

Edit the color of the links and headers using the color button or by editing the HTML.

Your newsletter message and donation appeal can go here. Click the link button to create links - remember to use a fully qualified URL starting with http:// in all your links!

To use CiviMail: Sincerely,

Your Team

News and Events
Featured Events
Fundraising Dinner
Training Meeting
Board of Directors Annual Meeting


Community Events
Bake Sale
Charity Auction
Art Exhibit


Important Dates
Tuesday August 27
Wednesday September 8
Thursday September 29
Saturday October 1
Sunday October 20
Helpful Tips

Tokens
Click "Insert Tokens" to dynamically insert names, addresses, and other contact data of your recipients.

Plain Text Version
Some people refuse HTML emails altogether. We recommend sending a plain-text version of your important communications to accommodate them. Luckily, CiviCRM accommodates for this! Just click "Plain Text" and copy and paste in some text. Line breaks (carriage returns) and fully qualified URLs like http://www.example.com are all you get, no HTML here!

Play by the Rules
The address of the sender is required by the Can Spam Act law. This is an available token called domain.address. An unsubscribe or opt-out link is also required. There are several available tokens for this. {literal}{action.optOutUrl}{/literal} creates a link for recipients to click if they want to opt out of receiving emails from your organization. {literal}{action.unsubscribeUrl}{/literal} creates a link to unsubscribe from the specific mailing list used to send this message. Click on "Insert Tokens" to find these and look for tokens named "Domain" or "Unsubscribe". This sample template includes both required tokens at the bottom of the message. You can also configure a default Mailing Footer containing these tokens.

Composing Offline
If you prefer to compose an HTML email offline in your own text editor, you can upload this HTML content into CiviMail or simply click "Source" and then copy and paste the HTML in.

Images
Most email clients these days (Outlook, Gmail, etc) block image loading by default. This is to protect their users from annoying or harmful email. Not much we can do about this, so encourage recipients to add you to their contacts or "whitelist". Also use images sparingly, do not rely on images to convey vital information, and always use HTML "alt" tags which describe the image content.

Click here to unsubscribe from this mailing list.

Our mailing address is:
{literal}{domain.address}{/literal}
', NULL, 1, 0);