In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
233 [In-Portal CMS] Admin Interfaces feature request N/A 2009-08-18 23:36 2009-10-03 07:56
Dmitry  
Dmitry  
normal  
closed 5.0.0  
fixed  
 
none 5.0.1  
0
0000233: Ability to Specify Recipient UserId in EmailEventAdmin
We need to have functionality to specify custom UserID for EmailEventAdmin.
Issue History
2009-10-03 07:56 administrator Note Added: 0000732
2009-10-03 07:56 administrator Status resolved => closed
2009-09-18 07:00 alex Type bug report => feature request
2009-09-18 07:00 alex Reproducibility always => N/A
2009-08-20 19:42 Dmitry Issue Monitored: alex
2009-08-20 19:42 Dmitry Note Added: 0000349
2009-08-19 15:25 Dmitry Note Added: 0000348
2009-08-19 15:25 Dmitry Status reviewed and tested => resolved
2009-08-19 15:25 Dmitry Resolution reopened => fixed
2009-08-19 15:25 Dmitry Status needs work => reviewed and tested
2009-08-19 15:25 Dmitry Status needs feedback => needs work
2009-08-19 15:24 Dmitry Changeset attached 5.0.x r12356
2009-08-19 15:24 Dmitry Changeset attached 5.0.x r12355
2009-08-19 15:24 Dmitry Changeset attached 5.0.x r12354
2009-08-19 15:23 Dmitry Changeset attached 5.0.x r12353
2009-08-19 15:23 Dmitry Changeset attached 5.0.x r12352
2009-08-19 04:46 alex Summary Ability to Specify Recepent UserId in EmailEventAdmin => Ability to Specify Recipient UserId in EmailEventAdmin
2009-08-19 04:46 alex Note Added: 0000346
2009-08-19 04:46 alex Status resolved => needs feedback
2009-08-19 04:46 alex Resolution no change required => reopened
2009-08-18 23:39 Dmitry Changeset attached 5.0.x r12348
2009-08-18 23:39 Dmitry Changeset attached 5.0.x r12347
2009-08-18 23:39 Dmitry Changeset attached 5.0.x r12346
2009-08-18 23:38 Dmitry Note Added: 0000342
2009-08-18 23:38 Dmitry Status reviewed and tested => resolved
2009-08-18 23:38 Dmitry Fixed in Version => 5.0.1
2009-08-18 23:38 Dmitry Resolution open => no change required
2009-08-18 23:36 Dmitry New Issue
2009-08-18 23:36 Dmitry Status active => reviewed and tested
2009-08-18 23:36 Dmitry Assigned To => Dmitry

Notes
(0000342)
Dmitry   
2009-08-18 23:38   
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]
(0000346)
alex   
2009-08-19 04:46   
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.
(0000348)
Dmitry   
2009-08-19 15:25   
Redone based on code review.
(0000349)
Dmitry   
2009-08-20 19:42   
Reminder sent to: alex

This was tested on VO site and works as expected.
(0000732)
administrator   
2009-10-03 07:56   
Closing issues from 5.0.1 version, because version was already released.