Jump to content

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 = "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";
?>

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

Correct. For example, my SMS email address is 11234567890@mobile.celloneusa.com, where 123-456-7890 is my phone number. The first 1 is the USA country code. I, personally, love this - spammers need to know both your mobile phone number, and your service provider.

Link to comment
https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-211549
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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.