Php Script Error

Hi Friends !!
Pleas help…
I need immediate reply…
is the following part of my php script is correct??
##########################
$query = “SELECT email, sendEmail”
. “\n FROM #__users
. “\n WHERE ( gid = 24 OR gid = 25 )”
. “\n AND sendEmail = 1”
. “\n AND block = 0”
;
$database->setQuery( $query );
$admins = $database->loadObjectList();

foreach ( $admins as $admin ) {
// send email to admin & super admin set to recieve system emails
mosMail($mosConfig_mailfrom, $mosConfig_fromname, $admin->email, $subject, $body);
}
##########################
if there is some problem, please correct…
Please tell early…
I am in hurry…
Marry XMAS
God Bless You

Sponsor our Newsletter | Privacy Policy | Terms of Service