Ability to Specify Recipient UserId in EmailEventAdmin

Components

Labels

Description

We need to have functionality to specify custom UserID for EmailEventAdmin.

Context Information

None

Additional information (do not use)

None

Activity

Former user October 3, 2009 at 12:56 PM

Closing issues from 5.0.1 version, because version was already released.

Dmitry Andrejev August 21, 2009 at 12:42 AM

This was tested on VO site and works as expected.

Dmitry Andrejev August 19, 2009 at 8:25 PM

Redone based on code review.

Alex August 19, 2009 at 9:46 AM

This was an incorrect assumption, because, when $send_params is not used, then $user_id value really affects target recipient. At the end it seems, that I should be implementing this task after all.

Dmitry Andrejev August 19, 2009 at 4:38 AM

After research noticed that NO changes needed since custom FROM and TO can specified as send_params and will be used.

[CODE]
$send_params = Array (
'from_email' => $this->Application->ConfigValue('Smtp_AdminMailFrom'),
'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', -1, $send_params);
$this->Application->EmailEventAdmin('USER.GIFTCERTIFICATE', -1, $send_params);

/CODE

Fixed

Details

Priority

Assignee

Reporter

Patch Instructions

Patches must be submitted through Phabricator.

External issue ID

External issue URL

Fix versions

Affects versions

Created August 19, 2009 at 4:36 AM
Updated December 29, 2024 at 9:28 PM
Resolved October 3, 2009 at 12:56 PM