{"id":562,"date":"2006-02-13T11:14:13","date_gmt":"2006-02-13T19:14:13","guid":{"rendered":"http:\/\/glenandpaula.com\/archives\/2006\/02\/13\/ringing-the-church-bells-via-sms\/"},"modified":"2006-02-13T11:36:07","modified_gmt":"2006-02-13T19:36:07","slug":"ringing-the-church-bells-via-sms","status":"publish","type":"post","link":"https:\/\/glenandpaula.com\/wordpress\/archives\/2006\/02\/13\/ringing-the-church-bells-via-sms","title":{"rendered":"Ringing The Church Bells Via SMS"},"content":{"rendered":"<p>We\u2019re putting togeth\u00ader a text-mes\u00adsag\u00ading reminder ser\u00advice for our meet\u00adings. Every Wednes\u00adday night at 7pm our web\u00adsite will send out a SMS mes\u00adsage to the cell phones of every\u00adone who signs up remind\u00ading them to get ready for Chi Alpha\u2019s week\u00adly wor\u00adship meet\u00ading. It\u2019s a sim\u00adple mes\u00adsage to help out those stu\u00addents who always mean to come but get busy doing some\u00adthing else and for\u00adget until the meet\u00ading is part\u00adway over:<\/p>\n<blockquote><p>Chi Alpha at 8:00 tonight in 300\u2013300.<\/p><\/blockquote>\n<p>I\u2019ve just test\u00aded the sys\u00adtem and it works pret\u00adty smooth\u00adly. <strong>It\u2019s the mod\u00adern-day equiv\u00ada\u00adlent of ring\u00ading the church bells!<\/strong><\/p>\n<p>The script was real\u00adly sim\u00adple to write. If you use a unix-based sys\u00adtem with PHP &amp; PEAR installed you could eas\u00adi\u00adly adapt it for your min\u00adistry:<\/p>\n<pre lang=\"php\">\n#!\/usr\/bin\/php\n ?php\n\/\/sends SMS announcments to each person in Chi Alpha who wants them\n\nrequire_once('Mail.php');\n$parameters['sendmail_args']='';\n$mailer=&amp;Mail::factory('sendmail',$parameters);\n\n$cells['Ferdinand Frosh']='5555555555';\n$cells['Suzie Sophomore']='5555555555';\n$cells['Jing Junior']='5555555555';\n$cells['Sheila Senior']='5555555555';\n\n$headers['From']='you@example.com';\n$headers['Reply-To']='you@example.com';\n$headers['Subject']='XA @ 8pm';\n$body='Chi Alpha at 8:00 tonight in 300-300';\n\nforeach ($cells as $cell) {\n        if (empty($cell)) continue;\n        $email=$cell.'@teleflip.com';\n        \/\/echo $email;\n        $mailer-&gt;send($email,$headers,$body);\n}\n?&gt;\n<\/pre>\n<p>All you have to do is cus\u00adtomize the script (add cell phone num\u00adbers and the right \u201cFrom\u201d and \u201cReply-To\u201d emails) and then add it to your crontab file with an entry like so:<br>\n<code><br>\n0 19 * * 4 \/path\/to\/announce.php<br>\n<\/code><\/p>\n<p>(Hint: type crontab \u2011e to edit your crontab file).<\/p>\n<p>By the way, it should go with\u00adout say\u00ading that you <strong>nev\u00ader add some\u00adone to an SMS announce\u00adment sys\u00adtem with\u00adout their express per\u00admis\u00adsion!<\/strong> If you think email spam hacks peo\u00adple off, then just wait until some\u00adone has to pay a text-mes\u00adsag\u00ading fee for some\u00adthing they\u2019re not inter\u00adest\u00aded in. The depths of their rage would aston\u00adish the Hulk.<\/p>\n<p>Geek\u00ads\u00adpeak: the rea\u00adson I used the PEAR::Mail library was to make sure that the reply-to address was the one I want\u00aded. I just could\u00adn\u2019t make it hap\u00adpen using the PHP mail() func\u00adtion alone. Every\u00adthing was from \u201croot@my web\u00adserv\u00ader.\u201d Very annoy\u00ading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re putting togeth\u00ader a text-mes\u00adsag\u00ading reminder ser\u00advice for our meet\u00adings. Every Wednes\u00adday night at 7pm our web\u00adsite will send out a SMS mes\u00adsage to the cell phones of every\u00adone who signs up remind\u00ading them to get ready for Chi Alpha\u2019s week\u00adly wor\u00adship meet\u00ading. It\u2019s a sim\u00adple mes\u00adsage to help out those stu\u00addents who always mean \u2026 <a href=\"https:\/\/glenandpaula.com\/wordpress\/archives\/2006\/02\/13\/ringing-the-church-bells-via-sms\" class=\"more-link\">Con\u00adtin\u00adue read\u00ading<span class=\"screen-reader-text\"> \u201cRing\u00ading The Church Bells Via SMS\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[8,4],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-resources-reviews","category-stanfordministry-news"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6Ded-94","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":0,"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"wp:attachment":[{"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glenandpaula.com\/wordpress\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}