In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1238 [In-Portal CMS] Email Templates bug report always 2012-03-30 11:15 2012-07-25 05:31
alex  
alex  
normal  
closed 5.1.3  
fixed  
 
none 5.2.0-B3  
https://groups.google.com/d/topic/in-portal-bugs/VoQfWFRgFnU/discussion
Fixing fatal error on e-mail sending with empty recipient
1
0001238: Giving empty "to_name" and "to_email" parameters during e-mail sending results in Fatal Error
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.
related to 0001207closed  (5.2.0)alex Ability to subscribe to any system event from e-mail event 
patch dont_send_email_to_empty_recipient.patch (775) 2012-03-30 11:15
http://tracker.in-portal.org/file_download.php?file_id=1580&type=bug
Issue History
2012-07-25 05:31 alex Note Added: 0004944
2012-07-25 05:31 alex Status resolved => closed
2012-03-30 11:19 alex Changeset attached 5.2.x r15248
2012-03-30 11:19 alex Note Added: 0004535
2012-03-30 11:19 alex Status reviewed and tested => resolved
2012-03-30 11:19 alex Fixed in Version => 5.2.0-B3
2012-03-30 11:19 alex Resolution open => fixed
2012-03-30 11:19 alex Assigned To !COMMUNITY => alex
2012-03-30 11:18 alex Relationship added related to 0001207
2012-03-30 11:18 alex Note Added: 0004534
2012-03-30 11:18 alex Status needs testing => reviewed and tested
2012-03-30 11:18 alex Assigned To => !COMMUNITY
2012-03-30 11:18 alex Developer => alex
2012-03-30 11:18 alex Status active => needs testing
2012-03-30 11:17 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/VoQfWFRgFnU/discussion
2012-03-30 11:15 alex New Issue
2012-03-30 11:15 alex File Added: dont_send_email_to_empty_recipient.patch
2012-03-30 11:15 alex Change Log Message => Fixing fatal error on e-mail sending with empty recipient
2012-03-30 11:15 alex Estimate Points => 1

Notes
(0004534)
alex   
2012-03-30 11:18   
Will test all together later.
(0004535)
alex   
2012-03-30 11:19   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001238: Giving empty "to_name" and "to_email" parameters during e-mail sending results in Fatal Error
(0004944)
alex   
2012-07-25 05:31   
Since 5.2.0 version was released.