if ( $isNew ) { // messaging for new items require_once( $mosConfig_absolute_path .'/components/com_messages/messages.class.php' ); $database->setQuery( "SELECT id FROM #__users WHERE sendemail = '1'" ); $users = $database->loadResultArray(); foreach ($users as $user_id) { $msg = new mosMessage( $database ); $msg->send( $my->id, $user_id, "New Item", sprintf( _ON_NEW_CONTENT, $my->username, $row->title, $section, $category ) ); } }
// messaging for new items require_once( $mosConfig_absolute_path .'/components/com_messages/messages.class.php' ); $database->setQuery( "SELECT id FROM #__users WHERE sendemail = '1'" ); $users = $database->loadResultArray(); foreach ($users as $user_id) { $msg = new mosMessage( $database ); if ( $isNew ) { } else { $msg->send( $my->id, $user_id, "Edited Item", sprintf( _ON_EDITED_CONTENT, $my->username, $row->title, $section, $category ) ); } }
if ( $isNew ) { } else { $msg->send( $my->id, $user_id, "Edited Item", sprintf( _ON_EDITED_CONTENT, $my->username, $row->title, $section, $category ) ); }
if ( !$isNew ) { $msg->send( $my->id, $user_id, "Edited Item", sprintf( _ON_EDITED_CONTENT, $my->username, $row->title, $section, $category ) ); }
if ( $isNew ) { $msg->send( $my->id, $user_id, "New Item", sprintf( _ON_NEW_CONTENT, $my->username, $row->title, $section, $category ) ); }else{ $msg->send( $my->id, $user_id, "Edited Item", sprintf( _ON_EDITED_CONTENT, $my->username, $row->title, $section, $category ) ); }
mail("*****@greekmasa.gr,*******@greekmasa.gr","Edited Item", sprintf( _ON_EDITED_CONTENT, $my->username, $row->title, $section, $category ),"From: GreekMasa <******@greekmasa.gr>");