ted_chou12 Posted March 20, 2007 Share Posted March 20, 2007 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 More sharing options...
cmgmyr Posted March 20, 2007 Share Posted March 20, 2007 Take a look at this: http://www.sms411.net/2006/07/how-to-send-email-to-phone.html Link to comment https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-211364 Share on other sites More sharing options...
ted_chou12 Posted March 20, 2007 Author Share Posted March 20, 2007 thanks, but im a but confused now, are: sms.ipipi.com message.alltel.com mmode.com myboostmobile.com these phone companies or are they online sms services? ??? Link to comment https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-211372 Share on other sites More sharing options...
cmgmyr Posted March 20, 2007 Share Posted March 20, 2007 they are all phone companies Link to comment https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-211400 Share on other sites More sharing options...
ted_chou12 Posted March 20, 2007 Author Share Posted March 20, 2007 so each phone company has different address? Link to comment https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-211417 Share on other sites More sharing options...
neylitalo Posted March 20, 2007 Share Posted March 20, 2007 Correct. For example, my SMS email address is [email protected], 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 More sharing options...
worldworld Posted March 21, 2007 Share Posted March 21, 2007 I came across this article .Please take a look at it. Link to comment https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-211849 Share on other sites More sharing options...
ted_chou12 Posted March 21, 2007 Author Share Posted March 21, 2007 hi, i get it now, however, are there any lists of phone service providers with their address like mobile.celloneusa.com? So that users can choose from them. Thanks Link to comment https://forums.phpfreaks.com/topic/43528-sms-using-php/#findComment-211892 Share on other sites More sharing options...
cmgmyr Posted March 21, 2007 Share Posted March 21, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.