I'm sending some SMS messages to my phone, and it gets to me just fine.

Then only thing is I cannot seem to specify the sender's name. I keep getting a long number, which seems to increment up everytime I send a new SMS message.

Here's the code:

$to="my phone number@txt.att.net";

$subject = "test";
$from = "From: Server <myemail@mydomain.com>";
$message = "test";
$headers = "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: Server <myemail@mydomain.com>";
mail($to,$subject_defined,$message,$from,$headers);

Does anyone know why a number would be showing on my text messages, instead of "Server"?

    A sms comes from a number not a name, the only reason you phone may show a name is if that number is in the phones address book.

      11 days later

      Actually you're using email2sms service so SenderID not relevant for this situation.

      If you singup for any SMS getaway service where SMS API exist e.g. HTTP API you'll be able to use own specific senderID.

      If you looking for any specific SMS solution I may try to help.

        Write a Reply...