Re: Send Email to Mobile
| From: | Richard Lynch | Date: | Thu, 01 Feb 2007 21:49:38 +0000 |
| Subject: | Re: Send Email to Mobile | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248171@lists.php.net to get a copy of this message | ||
Add a Reply-to: field on your headers.
http://php.net/mail
Read about the fifth argument.
On Thu, February 1, 2007 10:17 am, Marcelo Ferrufino Murillo wrote:
> Hi guys, I have a script that send emails to mobiles:
>
> <?php
> $subject=$_REQUEST["sb"];
> $nmobile=trim($_REQUEST["nmobile"]);
> $message=$_REQUEST["message"];
> $header="From: sms@sucre.com.bo";
>
> //Bolivia providers
> switch($nmobile[1]){
> case 0: $company="@viva-gsm.com"; break;
> case 1: $company="@entelmovil.com.bo";break;
> case 2:
> case 3: $company="@movil.com.bo"; break;
> case 6:
> case 7: $company="@tigo.com.bo";break;
> }
> $number="591".$nmobile.$company;
> if( @mail($number,$subject,$message,$header))
> echo "Message sent";
> else echo "error";
> ?>
>
> And this is the message in a mobile: nobody@nac.solo10.com
> ................
>
>
> I don´t know why appear the address nobody@nac.solo10.com the address
> must
> be: sms@sucre.com.bo, could you help me please, thank you
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?