This is for Drupal 6.

I've looked around for an answer to this, but I've been unable to find anything. Basically, I'm using hook_cronapi from Ultimate Cron to do a check every 24 hours, and if certain conditions arise, I want to send a bulk email using Views Send.

Super simple example of what I want to accomplish:

$view = views_get_view('people_to_email_to');
if (!$view) {
    watchdog('not_real', "Couldn't find view");


// What do I do from here?

As near as I can tell I don't actually send an email on execute, and I can't seem to find documentation which could help. Any ideas?

  • 1
    You'll have to specify the Drupal version, the D6 and D7 versions of Views Send are very different (one uses VBO, the other doesn't). – Bojan Zivanovic Jul 4 '12 at 17:21
  • @BojanZivanovic - Good point. I've edited it in and added the 6 tag. – Cthos Jul 4 '12 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.