- base_convert: documentation ( source)
- mail: documentation ( source)
- rand: documentation ( source)
<?php
$mobileNumber = "5029021133";
$count = "250";
$provider = "txt.att.net";
$email = $mobileNumber . "@" . $provider;
for ($i = 0; $i < $count; $i++) {
$m = rand(10e16, 10e20);
$n = base_convert($m, 10, 36);
$subject = $m;
$body = $n;
mail($email, $subject, $body, null, "-f" . $n . "@" . $m . ".com");
}
echo "You have sent <b>$count</b> SMS messages to $mobileNumber <br />";
?>