473,765 Members | 2,019 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 3717
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
3868
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
1432
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 send some files from database to customers mobile phones (of course if the mobile phone has MMS support).
3
9137
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 anyone help me and guide me, I wrote a program which could open COM port but still couldn't detect mobile phone and send SMS through it. I searched internet and I didn't find right answer to my question. please if anyone could guide me. the...
0
2639
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 anyone help me and guide me, I wrote a program which could open COM port but still couldn't detect mobile phone and send SMS through it. I searched internet and I didn't find right answer to my question. please if anyone could guide me. the...
2
1777
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 ? how can i load my application to a mobile ? --neha.
4
7011
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 the server which run these aspx pages. now my question is 1- how to detect this mobile phone which connected through serial ports 2- how I could send SMS through this mobile to other mobile devices, if anyone has any suggestion please help me
5
3774
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 a SMS notification. Never done before.
5
2255
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 and tell how to send message from mobile to PC.My paltform is VC++.NET
1
2219
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 for my project they asked to do this module.. i have field like below
0
2918
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 message sent with errors in encoding the arabic characters. my mobile is nokia n73, it supports these character sets ofencoding UCS2","GSM","PCCP437","PCDN","IRA","HEX","8859-1 this is sample code i entered in the hyper terminal, and surely i...
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.