Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $phonenum = "16783293991"; //works if 6783293991
- $from_name = "Gregory Smith";
- $from_email = "myemail@gmail.com";
- $from = sprintf ("From: %s <%s>nSender: %s <%s>nContent-Type: text/plain; charset="UTF-8"nContent-Transfer-Encoding: 8bitn", $from_name, $from_email, $from_name, $from_email);
- $to = $phonenum;
- $formatted_number = $to."@messaging.sprintpcs.com";
- mail("$formatted_number", "", "$message", $from); //the empty field of "" is the subject line and is unnecessary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement