sending a message with mail() is adding Forward Slash at the beginning

I have script that sends a text message to CellPhones and on every cellphone that i have tested, it always add Forward Slash(/) at the beginning of the text message.

[php]$to = "[email protected]";
$message = “Hello Wolrd, This is a test”;

mail ($to , “” ,$message , string $additional_headers [, string $additional_parameters ]] );[/php]

the text message I receive from the above code:

 / Hello Wolrd, This is a test

Anyone Knows why is that? or What can i do to correct the issue?

I don’t know why it is doing it. But, is it doing the same in email ?

Sorry it’s Adding a Forward Slash (/) I thought it was a Back Slash

This is what I have
[php]<?PHP

// $to = “######7103@tmomail.net”;
$to = “*******[email protected]”;

$message = “Hello Wolrd, This is a test”;

mail($to,"", “$message”, “From: Wilson [email protected]\r\n”);
?>[/php]

Result

/ Hello World, This is a test

It only happens on Cell Phone Text message It does not happen sending to a regular E-mail

After reading this my gut feeling is it’s the way the carrier is handling the message.
I’d guess there is some kind of ‘cleaning’ function implemented, something like addslashes or
it’s part of some kind of url.

Is there any documentation that you could have a look through and see if indeed there is any such thing happening?

Just my two-pence…

Red :wink:

Coulnt find anything however I will switch to a shared common short code.
Anyone know a good website and cheap that offer api so that can send text messages from my php script?

Sponsor our Newsletter | Privacy Policy | Terms of Service