Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1013

Giving empty "to_name" and "to_email" parameters during e-mail sending results in Fatal Error

    XMLWordPrintable

    Details

    • 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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: