Child pages
  • [emails] Giving empty "to_name" and "to_email" parameters during e-mail sending results in Fatal Error
Skip to end of metadata
Go to start of metadata

Imported from: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/56841f5854601675#

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.

dont_send_email_to_empty_recipient.patch

Related Tasks

INP-1013 - Getting issue details... STATUS