$mut->checkMailLog([
'1600 Pennsylvania Avenue',
'Washington',
- 'Dear Anthony,
-Thank you for signing Test Petition.
-',
+ 'Dear Anthony,',
+ 'Thank you for signing Test Petition.',
]);
$mut->stop();
}
$mut = new CiviMailUtils($this);
$loggedInUser = $this->createLoggedInUser();
$this->addLocationBlockToDomain();
- $this->swapMessageTemplateForInput('pledge_acknowledge', '{domain.name} {contact.first_name}');
+ $this->swapMessageTemplateForInput('pledge_acknowledge', '{domain.name} {contact.first_name} {contact.email_greeting_display}');
$form = $this->getFormObject('CRM_Pledge_Form_Pledge', [
'amount' => 10,
- 'installments' => 1,
'contact_id' => $this->individualCreate(),
'is_acknowledge' => 1,
'start_date' => '2021-01-04',
$form->postProcess();
$mut->checkAllMailLog([
'Default Domain Name Anthony',
- // These strings that are in the text template, since we swapped out the html one.
- 123,
- 'fixme.domainemail@example.org',
- 'Dear Anthony,',
+ 'Dear Anthony',
]);
$mut->clearMessages();
- $this->revertTemplateToReservedTemplate('pledge_acknowledge');
+ $this->revertTemplateToReservedTemplate();
}
}
-{assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}{$greeting},{/if}
-
-Thank you for signing {$petition.title}.
-
-In order to complete your signature, we must confirm your e-mail.
-Please do so by visiting the following email confirmation web page:
-
-{$petition.confirmUrlPlainText}
-
-If you did not sign this petition, please ignore this message.
-{assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}{$greeting},{/if}
-
-Thank you for signing {survey.title}.
-{assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}{$greeting},{/if}
-
-{ts}Thank you for your generous pledge.{/ts}
-
-===========================================================
-{ts}Pledge Information{/ts}
-
-===========================================================
-{ts}Pledge Received{/ts}: {$create_date|truncate:10:''|crmDate}
-{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney:$currency}
-
-===========================================================
-{ts}Payment Schedule{/ts}
-
-===========================================================
-{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}
-
-{if $frequency_day}
-
-{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}
-{/if}
-
-{if $payments}
-{assign var="count" value=1}
-{foreach from=$payments item=payment}
-
-{ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:''|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:''|crmDate}{/if}
-{assign var="count" value=$count+1}
-{/foreach}
-{/if}
-
-
-{ts 1='{domain.phone}' 2='{domain.email}'}Please contact us at %1 or send email to %2 if you have questions
-or need to modify your payment schedule.{/ts}
-
-{if $customGroup}
-{foreach from=$customGroup item=value key=customName}
-===========================================================
-{$customName}
-===========================================================
-{foreach from=$value item=v key=n}
-{$n}: {$v}
-{/foreach}
-{/foreach}
-{/if}
-{assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}{$greeting},{/if}
-
-{ts 1=$next_payment|truncate:10:''|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}
-
-===========================================================
-{ts}Payment Due{/ts}
-
-===========================================================
-{ts}Amount Due{/ts}: {$amount_due|crmMoney:$currency}
-{ts}Due Date{/ts}: {$scheduled_payment_date|truncate:10:''|crmDate}
-
-{if $contribution_page_id}
-{capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
-Click this link to go to a web page where you can make your payment online:
-{$contributionUrl}
-{else}
-{ts}Please mail your payment to{/ts}:
-{domain.address}
-{/if}
-
-===========================================================
-{ts}Pledge Information{/ts}
-
-===========================================================
-{ts}Pledge Received{/ts}: {$create_date|truncate:10:''|crmDate}
-{ts}Total Pledge Amount{/ts}: {$amount|crmMoney:$currency}
-{ts}Total Paid{/ts}: {$amount_paid|crmMoney:$currency}
-
-{ts 1='{domain.phone}' 2='{domain.email}'} Please contact us at %1 or send email to %2 if you have questions
-or need to modify your payment schedule.{/ts}
-
-
-{ts}Thank you for your generous support.{/ts}
-***********************************************************
-
-{ts}Test-drive Email / Receipt{/ts}
-
-{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}
-
-***********************************************************
-{ts}Submitted For:{/ts} {$displayName}
-{ts}Date:{/ts} {$currentDate}
-{ts}Contact Summary:{/ts} {$contactLink}
-
-===========================================================
-{$grouptitle}
-
-===========================================================
-{foreach from=$values item=value key=valueName}
-{$valueName}: {$value}
-{/foreach}