Index: branches/5.2.x/units/gift_certificates/gift_certificates_eh.php =================================================================== diff -u -N -r15149 -r15423 --- branches/5.2.x/units/gift_certificates/gift_certificates_eh.php (.../gift_certificates_eh.php) (revision 15149) +++ branches/5.2.x/units/gift_certificates/gift_certificates_eh.php (.../gift_certificates_eh.php) (revision 15423) @@ -1,6 +1,6 @@ $this->Application->ConfigValue('DefaultEmailSender'), 'from_name' => $object->GetDBField('Purchaser'), - 'to_email' => $object->GetDBField('RecipientEmail'), - 'to_name' => $object->GetDBField('Recipient'), 'message' => $object->GetDBField('Message'), 'amount' => $object->GetField('Amount'), 'gifcert_id' => $object->GetDBField('Code'), ); - $this->Application->EmailEventUser('USER.GIFTCERTIFICATE', null, $send_params); $this->Application->EmailEventAdmin('USER.GIFTCERTIFICATE', null, $send_params); + + $send_params['to_email'] = $object->GetDBField('RecipientEmail'); + $send_params['to_name'] = $object->GetDBField('Recipient'); + $this->Application->EmailEventUser('USER.GIFTCERTIFICATE', null, $send_params); } $this->clearSelectedIDs($event);