homepage Welcome to WebmasterWorld Guest from 54.166.95.146
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Smartphone, Wireless, and Mobile Technologies
Forum Library, Charter, Moderators: bakedjake

Smartphone, Wireless, and Mobile Technologies Forum

    
text message send from site
text message mobile
sscoder




msg:3328795
 5:02 pm on May 2, 2007 (gmt 0)

Is there a way to have a web form that users puts their cell phone number and when they click on submit it will send them a text message? I'm would like something with ASP and VP. I'm trying to avoid 3rd party where they charge you for every message and a monthly fee.

 

Demaestro




msg:3328859
 5:35 pm on May 2, 2007 (gmt 0)

There are ways. However you need to know the carrier first. There is no one way that will work for all major cell phone carriers.

I know that some carriers have an address that will relay SMS (text messages) like an email so it would look something like this. You have to have some type of 'sendmail' program though.

15555555555@msg.verizon.com (this is an example and will not work)

This would send a text to the cellphone with the number
(555)555-5555 BUT ONLY if they were on Verizon... if they were on Bell then that wouldn't work.

You have to find how each carrier relays the text to the phone. Some may not allow you to others may. Based on what I have seen on other sites I think there is a way for each carrier but you have to find out the way and then when you set up the form you will have to have them choose the carrier then enter a number so that you can proceed with the carrier specific method of sending.

sscoder




msg:3328941
 6:28 pm on May 2, 2007 (gmt 0)

Yes. I found out that it's like this:
¥T-Mobile: phonenumber@tmomail.net
¥Virgin Mobile: phonenumber@vmobl.com
¥Cingular: phonenumber@cingularme.com
¥Sprint: phonenumber@messaging.sprintpcs.com
¥Verizon: phonenumber@vtext.com
¥Nextel: phonenumber@messaging.nextel.com

I can have a field for number and then a drop down of one of these providers. That would be fine. But then is there a special way to do the code to send these out?

Demaestro




msg:3329802
 2:33 pm on May 3, 2007 (gmt 0)

Nice find on all the carriers! I would have had to find that all myself at some point so thanks, now I don't have to. I am working on getting something like this working in Canada right now.

So for you to send the message........Look into getting a sendmail program going on your server. Once you get one look at some examples for sending email. It is pretty straight forward.

It would look something like this (depending on your scripting language):

<sendmail>
<mime type="text/plain">

to:<%--to_address-->
from:<%--from_address-->

<%--message_body-->

</mime>
</sendmail>

[edited by: Demaestro at 2:36 pm (utc) on May 3, 2007]

sscoder




msg:3329807
 2:44 pm on May 3, 2007 (gmt 0)

I am using the code below but doesn't seem to work. I have one field for the phone number (phone) and a drop down of the carriers (provider). So when the use submits I'm trying to combine the two in the recipient but it's not working. I'm using VB and ASP. Do you have an idea on what might be wrong?

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "Name"
Mailer.FromAddress= "me@site.com"
Mailer.RemoteHost = "mail.server"
Mailer.AddRecipient "Cell", Request.Form("phone") & Request.Form("provider")

Mailer.Subject = "Information Request"

Mailer.BodyText = "text message info"
Mailer.SendMail

Demaestro




msg:3329864
 3:33 pm on May 3, 2007 (gmt 0)

I am not that familiar with ASP. Haven't used it since I was in school.

I will take a guess and say it might be because you aren't setting a mime type. It may require one. You would want to use text/plain. Also try taking out the subject. SMS doesn't really have a subject value. That also may be an issue as the relaying servers might not know what to do with it... I am guessing though.

Try sending to an email address first instead of a phone, just to make sure that your script is actually sending the email out.

If you get an email then it isn't the script and you can start looking at the relaying servers. Perhaps some of them want a 1 then the area code.

Keep posting. I am sure someone here will know about ASP. If no help comes and you get stuck try posting the question in the ASP forum. Someone may see something wrong with the way you are trying it.

[edited by: Demaestro at 3:35 pm (utc) on May 3, 2007]

jtara




msg:3330096
 7:11 pm on May 3, 2007 (gmt 0)

I would certainly start twiddling by sending some mail through the carrier gateways from a regular mail client. (e.g. Outlook, or, better yet, a simple, command-line client on Linux, e.g. "mail".) This will allow you to get the hang of it and do some experimenting.

No mime type should be needed, unless that is required by something at your end. It's just extra junk that the gateway will have to throw away.

Keep in mind that SMS messages are limited to 160 characters. Some gateways will break longer messages into multiple SMS messages. Some won't. You may have to come up with a table of capabilities and build it into your program or a database.

For more info, the Wikipedia entries on "SMS" and "SMS gateway" are good starts, and will lead you to sites with more definative information.

BillBSET




msg:3337382
 7:38 pm on May 11, 2007 (gmt 0)

I set it up a few days ago..

It's Not too hard if you can perl or php...
Each service has a little bit different interface.

Mine sends both the contact email and the cell phone text message.
Logs the lot and makes an addy entry.

There are rules in the US that apply.
'Short Codes' and all,,,

bill

[edited by: encyclo at 11:06 pm (utc) on May 11, 2007]
[edit reason] no URLs please, see TOS #13 [webmasterworld.com] [/edit]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Smartphone, Wireless, and Mobile Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved