Is it possible to avoid the from?
One service provide is sending
SMS without from.
How is it they are doing?
We dont want the from to be displayed.
How to do this?
Ubernissen wrote:
SMS messages is like e-mails, therefore there has to be a trace back to the user who send it.
If the "From: email@from.me" part is left out, the mail server adds one with your mail servers default e-mail address and somekind of ID, so that it can be traced back.
If you use this script:
$smsto = "The Mobile Number";
//(the mobile number + @TheMobileService.Provider)
$smsfrom = "25896547";
//(the from's mobile number + @TheMobileService.Provider)
$subject = "SMS message";
$body = "This is a test from me to you";
mail( $smsto, $subject, $body, "From: " . $smsfrom);
The SMS SHOULD look like this on the recieving mobile phone:
From: 25896547@teledanmark.dk
Subject: SMS message
Body: This is a test from me to you
NOTE that the "@TheMobileService.Provider" has to be the SMS e-mail address to that mobile phones service provider.