RE: Send Email to Mobile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This kind of hassle you can avoid if you use PHPMailer that you can find at
http://phpmailer.sourceforge.net

Best regards,
Peter Lauri

www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free


-----Original Message-----
From: Marcelo Ferrufino Murillo [mailto:marcefm@xxxxxxxxx] 
Sent: Thursday, February 01, 2007 6:17 PM
To: php-general@xxxxxxxxxxxxx
Subject:  Send Email to Mobile

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@xxxxxxxxxxxx";

//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@xxxxxxxxxxxxxx ................


I don´t know why appear the address nobody@xxxxxxxxxxxxxx the address must
be: sms@xxxxxxxxxxxx, could you help me please, thank you

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux