So this friend of mine was getting annoying calls and texts at all hours on his cell phone.
My friend didn't like this; not only was it impolite, discouraging, and costing him money ... it's just wrong to call random people (it wasn't a friend of his).
So I wrote this:
$phone = "{area_code_redacted}{phone_number_redacted}@$some_gateway.com";
$texts = array(
"Help! My pants are on FIRE!!!!!",
"Order: 1 large thin-crust Meat Lover's, add anchovies, please. Send to {address_of_police_department_redacted}{ditto_city_and_state}. Ask for $name_of_police_chief.",
"To him who is thirsty I will give to drink without cost from the spring of the water of life. He who overcomes will inherit all this, and I will be his God and he will be my son. But the cowardly, the unbelieving, the vile, the murderers, the sexually immoral, those who practice magic arts, the idolaters and all liars, their place will be in the fiery lake of burning sulfur. This is the second death.",
"Wanna see me in a tutu?",
"Lions and Tigers and Bears ---- oh MY!"
);
$chance = rand(0,4);
$send_chance = rand(1,3);
if ($send_chance ==3) {
$msg = $texts[$chance];
$out = mail($phone,"Hi!",$msg);}
I had it run every minute for about 8 hours after Saturday midnight.
In short ... don't mess with my friends' phones 😉