The Petition Email CiviCRM extension allows you to automatically trigger an email everytime someone signs a petition. The email can go to one or more static targets or you can do a dyna mic lookup of targets by matching the value of a field in the petition signer's contact with a value in a target group's contact.
If combined with an extension that can do auto-lookups of electoral districts (such as the [CiviCRM Cicero](https://drupal.org/project/civicrm_cicero) module) , you can use this extension for e-advocacy campaigns.
<description>Email petition signatures to a selected recipient</description>
<description>Email petition signatures to static or dynamic list of selected recipients</description>
<license>AGPL</license>
<maintainer>
<author>Joseph Lacey</author>
<email>joseph@palantetech.coop</email>
</maintainer>
<releaseDate>2013-12-16</releaseDate>
<version>1.0</version>
<version>2.0</version>
<develStage>beta</develStage>
<compatibility>
<ver>4.4</ver>
<ver>4.5</ver>
</compatibility>
<comments>This extension is a port of the Progressive Technology Project's CiviCRM Petition Email Drupal module</comments>
<comments>This extension is a re-write of the extension written by Palante which was a port of the Progressive Technology Project's CiviCRM Petition Email Drupal module</comments>
ALTERTABLEcivicrm_petition_emailADDCOLUMN`location_type_id`int(10)unsignedNOTNULLDEFAULT'0'COMMENT'The location type that should be used when selecting the target email address.';
ALTERTABLEcivicrm_petition_emailADDCOLUMN`subject_field`varchar(255)DEFAULTNULLCOMMENT"The custom field used to store the petition signer's personal subject."AFTERdefault_message;
-- Table structure for table `civicrm_petition_email`
--
DROPTABLEIFEXISTS`civicrm_petition_email`;
CREATETABLE`civicrm_petition_email`(
CREATETABLEIFNOTEXISTS`civicrm_petition_email`(
`petition_id`int(10)unsignedNOTNULLDEFAULT'0'COMMENT'The SID of the petition.',
`recipient_email`varchar(128)DEFAULTNULLCOMMENT'The email of the petition target.',
`recipient_name`varchar(128)DEFAULTNULLCOMMENT'The display name of the petition target.',
`location_type_id`int(10)unsignedNOTNULLDEFAULT'0'COMMENT'The location type that should be used when selecting the target email address.',
`default_message`textCOMMENT'The default message for the petition',
`message_field`int(10)unsignedNOTNULLDEFAULT'0'COMMENT'The ID of the custom field used for petition messages.',
`message_field`varchar(128)COMMENT'The name of the custom field used for petition messages.',
`subject_field`varchar(255)DEFAULTNULLCOMMENT"The custom field used to store the petition signer's personal subject.",
`subject`varchar(128)DEFAULTNULLCOMMENT'The subject line for outgoing emails.',
`recipients`textCOMMENT'The name and email address of additional targets that should receive a copy of all petitions signed, separated by line breaks.',
PRIMARYKEY(`petition_id`),
KEY`petition_id`(`petition_id`)
)ENGINE=InnoDBDEFAULTCHARSET=utf8COMMENT='Stores recipient and message information for petitions...';