Jump to content

sms using php


ted_chou12

Recommended Posts

I remember sending sms is just like email, except the receiver's email is a bit different:

<?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 = "[email protected]";
$mail->FromName = "Your Name";
$mail->AddAddressTo("[email protected]", "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";
?>

Does anyone have a list of sms services domains like: sms.ipipi.com (the one shown in the example)?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/43528-sms-using-php/
Share on other sites

when they sign up they will have to select their service provider from a list. When they submit the form, write all of the data into your DB. Then when you send out your "SMS" (email) you will have to search for the provider's info and add that onto the user's phone number.

Link to comment
https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-212076
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.