PHP sending 7 emails to end up and hit 1 mobile sms carrier -


this new questions, figured deserved new thread.

i have php sending sms mobilenumber@carrier.com

this working.

i have ask user input number , choose provider, wondering since in area new york, have 7 popular mobile providers.

can skip second question of asking user mobile provider.

and send php 7 emails out number , each mobile carriers email extention wind hitting 1 of them?

for instance, instead of sending

mail(1231233321@txt.att.net, $subject, $message );

can send 7 @ once? knowing 6 wont work..

mail(1231231233@txt.att.net, 1231231233@tmobile.net, etc....., $subject, $message ); 

and if how go writing attached code?

<?php if (!isset($_post['submit'])){error("must use form here!");} $ph = preg_replace('/[^[:digit:]]/', '', $_post['10digit']); $carrier = $_post['carrier']; switch ($carrier){     case 'att':         $to = $ph . '@txt.att.net';         break;     case 'metropcs':         $to = $ph . '@mymetropcs.com';         break;     case 'nextel':         $to = $ph . '@messaging.nextel.com';         break;     case 'sprint':         $to = $ph . '@messaging.sprintpcs.com';         break;     case 'tmobile':         $to = $ph . '@tmomail.net';         break;     case 'verizon':         $to = $ph . '@vtext.com';         break;     case 'virgin':         $to = $ph . '@vmobl.com';         break;           default:         error("no carrier selected, message not sent!"); }  $subject = "buseto's pizzeria"; $message = "1851 sunrise highway, bay shore, ny 11706 (631) 665-4939 http://www.busetopizza.com";  mail($to, $subject, $message);     echo "your message has been sent!";     exit(); function error($msg){     echo "an error has occurred: ".$msg;     exit(); } ?> 

spam emails primary reason internet not fast be. want contributing 6 times amount of emails should send remove need 1 little drop-down?

to answer question, multiple recipients can specified separating them correctly, if memory serves done semicolon. to parameter "test@example.com;other@example2.com".


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -