Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Sending newsletter from PHP script #31415
    mateusz.gr
    Participant

    OK, I havent noticed the second parameter of send() should be an array of users, not a single user. When I changed my code to:

    Newsletter::instance()->send(
    Newsletter::instance()->get_email(1),
    [Newsletter::instance()->get_user(‘user@example.com’)]
    );

    everything works fine. Please close this thread.

Viewing 1 post (of 1 total)