| 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.
email@example.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.
| 6:28 pm on May 2, 2007 (gmt 0)|
Yes. I found out that it's like this:
¥Virgin Mobile: firstname.lastname@example.org
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?
| 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):
[edited by: Demaestro at 2:36 pm (utc) on May 3, 2007]
| 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.RemoteHost = "mail.server"
Mailer.AddRecipient "Cell", Request.Form("phone") & Request.Form("provider")
Mailer.Subject = "Information Request"
Mailer.BodyText = "text message info"
| 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]
| 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.
| 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,,,
[edited by: encyclo at 11:06 pm (utc) on May 11, 2007]
[edit reason] no URLs please, see TOS #13 [webmasterworld.com] [/edit]