Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
Sending SMS using PHP
Old 12-21-2010, 12:12 AM Sending SMS using PHP
Banned

Posts: 14
Trades: 0
Am new to php and I want to know, is there any way by which I can send sms using my php script? I want to send confirmation code while using signup to mobile device instead of email.
marshal is offline
View Public Profile
 
 
Register now for full access!
Old 12-21-2010, 12:15 AM Re: Sending SMS using PHP
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Are you using a particular service for sending the SMS messages?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
View Public Profile Visit NullPointer's homepage!
 
Old 12-21-2010, 05:05 AM Re: Sending SMS using PHP
joe12joe's Avatar
Banned

Posts: 12
Name: Joe
Location: Houston
Trades: 0
Sample code to send text messages written using php. This code requires phpmailer class. You can download free phpmailer from http://phpmailer.sourceforge.net/. This code is provided as sample only.
PHP Code:
<?php
require("class.phpmailer.php");

$mail = new PHPMailer();

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

$mail->From "YourUserName@yourservice.com";
$mail->FromName "Your Name";
$mail->AddAddressTo("DestinationPhoneNumber@sms.yourserviceprovider.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";
?>
I hope, it will help you.
joe12joe is offline
View Public Profile Visit joe12joe's homepage!
 
Closed Thread     « Reply to Sending SMS using PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13117 seconds with 12 queries