Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
how to load email->bcc from database?
  • Hi,
    I need to load the bcc with emails from my users table.
    will the as_array() work?

    Thanks
  • HarroHarro
    Accepted Answer
    Depends on what your as_array returns.

    You can pass an assoc array to bcc(), containing 'email' => 'name' entries.
  • [code]
    $query = Model_User::query()->where('email','<>','')->get();
    $users = \Arr::pluck($query, 'username', 'email');
    $email->bcc($users);
    [/code]

    I am not getting the bcc copy.
  • It's working now.
  • For future readers, what was the problem?
  • No problem, bcc was going to my spam folder. :-)
  • ah, ok. Thanks for clearing that up. :-)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion