-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.1.3
-
Fix Version/s: 5.2.0-B3
-
Component/s: E-mails
-
Labels:None
-
External issue URL:
-
Change Log Message:Fixing fatal error on e-mail sending with empty recipient
-
Story Points:1
-
External issue ID:1238
-
Copy Issue Key:
-
Patch Instructions:
I recently had a case, when I was sending a e-mail to subscribers, but each of them had either email or user id filled-in.
I used following code:
$send_params = Array ();
$send_params['to_name'] = $email;
$send_params['to_email'] = $email;
$this->Application->EmailEventUser('EVENT.NAME', $user_id, $send_params);
And I've discovered a bug, that when user have $id, but not e-mail empty recipient is added resulting Fatal Error during e-mail sending.