G M R ",htmlspecialchars($result['message'], ENT_COMPAT | ENT_HTML401, 'UTF-8', true))?>160) { echo "SMS Message it too long."; exit(); } if ((!empty($subject) && !empty($message)) || !empty($smsmessage)) { databaseQuery("INSERT INTO announcements (user, subject, message, sms, date) VALUES (%s,%s,%s,%s,%s)", $_MGM['user']['docid'], $subject, $message, $smsmessage, $_MGM['time']); $email = getSetting("email"); $replyToEmail = getSetting("replyToEmail"); if (!empty($subject) && !empty($message)) { $headers = "From: ".$email."\r\n"; $headers .= "Reply-to: ".$replyToEmail."\r\n"; $results = databaseQuery("SELECT * FROM members WHERE preferredMethod='Email' OR preferredMethod='Both'"); $oneSuccessful = false; while ($result = databaseFetchAssoc($results)) { $address = $result['email']; if (mail($address, $subject, $message, $headers)) { $oneSuccessful = true; } } if ($oneSuccessful) { echo "Successfully Sent."; } else { echo "Failure sending email."; } } if (!empty($smsmessage)) { echo "SMS not implemented."; } } else { echo "Missing Data."; } } } if ($_MGM['path'][1]=="rsvp") { if ($_MGM['path'][2]=="list") { $results = databaseQuery("SELECT * FROM meetings WHERE date>=%d", $_MGM['time']); while ($result = databaseFetchAssoc($results)) { ?>Missing fields.Invalid contact info.Your RSVP was updated.Your RSVP was submitted.