PHP List Plugin

Status
Not open for further replies.

stevelis

Member
Trying to sort out this piece of php script to enable a function to send emails from the list.
Have loaded the file into plugins/fabrik_lists/scripts etc. and selected the file in the dropdown box of the plugin.
Any suggestions greatly appreciated

<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
$myDb = FabrikWorker::getDbo();
$myQuery = $myDb->getQuery(true);
$myQuery = "SELECT `Email` FROM `steward` WHERE `id` IN ('{calendar___chairsteward_raw}','{calendar___steward2_raw}','{calendar___steward3_raw}')";
$myDb->setQuery($myQuery);

This is where I think I am getting lost with the next few lines

return $myDb->loadResult()
$recipients = $db->LoadObject();
$recipients = implode(',', $recipients); // your email address

$to = $recipients;
$subject = "Stewards Event Reminder";
$txt = "Hello Steward";
$headers = "From: admin@camsjac.com" . "\r\n" .
"CC:steve@gmail.com ";
mail($to,$subject,$txt,$headers);
?>

Regards
Steve
 
Last edited:
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top