How can i send sms using php?

Discussion in 'PHP' started by stronger, Jul 3, 2010.

  1. #1
    I have seen that many websites in php sending sms using php form. I want to know how can i send sms using php?

    How much it will cost me to send sms?
     
    stronger, Jul 3, 2010 IP
  2. newcity

    newcity Peon

    Messages:
    1,015
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you need to have a licence from VOIP companies to send sms. Well basically it is easier to hire a programmer for its a complicated process.
     
    newcity, Jul 3, 2010 IP
  3. NextDoorTrader

    NextDoorTrader Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you buy sms gateway api then you can send sms from your site using simple api and form.
     
    NextDoorTrader, Jul 3, 2010 IP
  4. joseph pop

    joseph pop Guest

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello,

    You just need to register on sms gateway or you can follow this scripy below:

    <?php
    require("class.phpmailer.php");

    $mail = new PHPMailer();

    $mail->IsSMTP(); // set mailer to use SMTP
    $mail->Host = "ipipi.com"; // specify main and backup server
    $mail->SMTPAuth = true; // turn on SMTP authentication
    $mail->Port =25;
    $mail->Username = "YoureIPIPIUsername"; // SMTP username at ipipi
    $mail->Password = "YourPassword"; // SMTP password

    $mail->From = "YourUserName@ipipi.com";
    $mail->FromName = "Your Name";
    $mail->AddAddressTo("DestinationPhoneNumber@sms.ipipi.com", "Receiver Name");

    $mail->Subject = "Compression Option goes here - find out more";
    $mail->Body = "Your Message";

    if(!$mail->Send())
    {
    echo "Message could not be sent. <p>";
    echo "Mailer Error: " . $mail->ErrorInfo;
    exit;
    }
    echo "Message has been sent";
    ?>
     
    joseph pop, Jul 3, 2010 IP
  5. webal

    webal Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can register sms gateway from clickatell.
    after that you can use php to send sms
     
    webal, Jul 3, 2010 IP
  6. arunsinghrawat

    arunsinghrawat Greenhorn

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #6
    You can sms but for that you need sms gateway...
    If you have sms gateway than you easily find script for that
     
    arunsinghrawat, Jul 3, 2010 IP