473,503 Members | 13,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How Can i Send Message to all mobile

1 New Member
Hello
how can i send message to all mobile set using asp code .Please Help me.



thnak.s
Jan 25 '08 #1
1 3705
CroCrew
564 Recognized Expert Contributor
Hello Balabhadra Kar,

Give this a try. Save the code as “SMSExample.asp” without the quotes.

More gateways for other providers can be found at: http://en.wikipedia.org/wiki/SMS_gateways

Hope this helps~

Expand|Select|Wrap|Line Numbers
  1. <%
  2.     If (Request.Form("SendMessage")) Then
  3.         Set myMail=CreateObject("CDO.Message")
  4.         myMail.Subject = ""
  5.         myMail.From = Request.Form("PhoneNumber") & Request.Form("Carrier")
  6.         myMail.To = Request.Form("PhoneNumber") & Request.Form("Carrier")
  7.         myMail.TextBody = Request.Form("YourMessage")
  8.  
  9.         On Error Resume Next 
  10.              myMail.Send    
  11.              If Err <> 0 Then 
  12.                  Response.Write("<h3><Font Color='#FF0000'>Error occurred: <i>" & Err.Description & "</i></Font></h3>")
  13.              else
  14.                  Response.Write("Your message was sent successfully.")
  15.              End If
  16.         Response.End
  17.     End If
  18. %>
  19.  
  20. <html>
  21.     <head>
  22.         <title>Example</title>
  23.     </head>
  24.     <body>
  25.         <form method="post" action="Test30.asp" name="xform" id="xform">
  26.             <input name="SendMessage" type="hidden" value=true> 
  27.             <table border="0">
  28.                 <tr>
  29.                     <td>Phone Number:</td>
  30.                     <td><input name="PhoneNumber" type="text"><font size="1">(only enter the numbers) example 6045555555</font></td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>Select Your Carrier</td>
  34.                     <td>
  35.                         <select name="Carrier">
  36.                             <option value="@tmomail.net">T-Mobile (USA)</option>
  37.                             <option value="@message.alltel.com">Alltel Wireless</option>
  38.                             <option value="@mms.att.net ">AT&T Mobility (formerly Cingular)</option>
  39.                             <option value="@cingularme.com">Cingular (Postpaid)</option>
  40.                             <option value="@cwemail.com">Centennial Wireless</option>
  41.                             <option value="@cingularme.com">Cingular (GoPhone prepaid)</option>
  42.                             <option value="@fido.ca">Fido (Canada)</option>
  43.                             <option value="@pcs.rogers.com">Rogers (Canada)</option>
  44.                             <option value="@messaging.sprintpcs.com">Sprint (PCS)</option>
  45.                             <option value="@page.nextel.com">Sprint (Nextel)</option>
  46.                             <option value="@vtext.com">Verizon</option>
  47.                             <option value="@vmobl.com">Virgin Mobile (USA)</option>
  48.                             <option value="@vmobile.ca">Virgin Mobile (Canada)</option>
  49.                         </select>
  50.                     </td>
  51.                 </tr>
  52.                 <tr>
  53.                     <td colspan="2">
  54.                         <textarea name="YourMessage" cols="142" rows="5" style="width:500px">Only 142 characters can be sent!</textarea>
  55.                     </td>
  56.                 </tr>
  57.                 <tr><td colspan="2"><input type="submit" value="Send Message to Phone"></td></tr>
  58.             </table>
  59.             <p>*Standard text messaging rates apply.</p>
  60.         </form>
  61.     </body>
  62. </html>
  63.  
  64.  
Jan 25 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3849
by: Larry Woods | last post by:
I have a situation where I need to send a text message to a cell phone. Any ideas? TIA, Larry Woods
0
1422
by: David Dvali | last post by:
Hello. I'm interesting if it is possible (if yes, how?) sending of some files to mobile phones via MMS messages or GPRS? What I need to complete this task in my application? I just need to...
3
9088
by: Sara | last post by:
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could...
0
2623
by: Sara | last post by:
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could...
2
1757
by: nehal | last post by:
Hello , i am developing a mobile web application using vb.net which provides auto sms sending. I have also sms and pager toolkit. Is there any way to send sms to mobile without cable connection...
4
6995
by: Sara | last post by:
Hi I want to code a program which could send SMS through web page to mobile phone, but because there is no Service here such as SMPP , therefore I have GSM mobile phone which connected directly to...
5
3766
by: tommaso.gastaldi | last post by:
Hi. I have been implementing a simple email notification system using the handy class SmtpClient: With SmtpClient .Host =MailServer .Send(MailMessage) '... now my client is asking also for...
5
2239
by: napster | last post by:
hi, I am working on a project to control some pc activities from mobile but am not able to send a message from mobile to pc.I have tried the AT commands but its not working for me.Can anybody help...
1
2203
by: suthakar | last post by:
Hai, Is there any way to send sms from computer to mobile , we have some website like www.way2sms.com can we connect our program from ASP.NET to that link.. and send sms.. Actually...
0
2905
by: amar elzaman | last post by:
peace be upon u friends i'm working on a project to send sms through pc and gsm modem(mobile) and every thing is ok, i succeded to send but english sms only, when i tried to send arabic the...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.