SOOP Portal SOOP Portal


     
 
Welcome Guest Minimize/Maximize Deactivate Module
Name:
Pass:
Auto Login
Add me to Active Users list
Yes    No

Forgot password?  | Register
 
     

     
 
Top 10 Recent Posts Minimize/Maximize Deactivate Module
View Last Post Events Calendar
Pages 1 2 3 4
Last Post By: AraCam
Topic Starter: chettsy
Forum: Phoenix 3rd Party Mods

Posted: Today at: 8:36am


View Last Post geckoLinks Preview
Last Post By: DavidvdW
Topic Starter: ripper
Forum: Phoenix 3rd Party Mods

Posted: Yesterday at: 9:25am


View Last Post [CLOSED] mgmt_dev_config error
Last Post By: bane1956
Topic Starter: bane1956
Forum: Phoenix RC Bug Reports

Posted: 02 September 2010 at: 6:08am


View Last Post [CLOSED] db_update gives error
Last Post By: bane1956
Topic Starter: bane1956
Forum: Phoenix RC Bug Reports

Posted: 31 August 2010 at: 2:46am


View Last Post GeckoLinks Expiry Dates???
Last Post By: AraCam
Topic Starter: ripper
Forum: Phoenix 3rd Party Mods

Posted: 30 August 2010 at: 9:45am


View Last Post [OPEN] Update Module
Last Post By: AraCam
Topic Starter: donshearer
Forum: Phoenix RC Bug Reports

Posted: 30 August 2010 at: 9:42am


View Last Post [OPEN] - Error on image upload
Last Post By: mchilson
Topic Starter: mchilson
Forum: Phoenix RC Bug Reports

Posted: 30 August 2010 at: 9:38am


View Last Post [OPEN] issue with menu display
Last Post By: AraCam
Topic Starter: rogan1227
Forum: Phoenix RC Bug Reports

Posted: 30 August 2010 at: 9:37am


View Last Post [OPEN] Poll bug report
Last Post By: AraCam
Topic Starter: gunguyr
Forum: Phoenix RC Bug Reports

Posted: 30 August 2010 at: 9:31am


View Last Post [Open] RC1.0 to 1.1 Update fails
Last Post By: AraCam
Topic Starter: MIGhunter
Forum: Phoenix RC Bug Reports

Posted: 30 August 2010 at: 9:29am


 
     

 
ASP
 SOOP Community :: ASP

Subject Topic: SMS Messages via SMTP Post ReplyPost New Topic
Forum Jump  

     
 
Author
Message Prev Topic | Next Topic 
ptyo2010
Newbie


Newbie

Joined: 03 February 2010
National Flag of United States United States
Posts: 12
Posted: 08 February 2010 at 10:56am | IP Logged Quote ptyo2010

Could use some help / suggestions on something I am trying to get working. First where I work we have a SMS program that sends text messages to individuals or a group with individuals in it. The problem is that the software has numerous issues with licensing causing me problems. So I am trying to write my own that I will be able to include in the offices Intranet that I am currently working on.  Below is the code I already have for my SMS / Via E-mail.

<%
If Request.Form("btnSend").Count>0 Then
 Set objMessage = CreateObject("CDO.Message")
 objMessage.Subject = Request.Form("subject")
 objMessage.From = Request.Form("from")
 objMessage.To = Request.Form("to")
 objMessage.TextBody = Request.Form("message")

 '==This section provides the configuration information for the remote SMTP server.
 '==Normally you will only change the server name or IP.
 objMessage.Configuration.Fields.Item _
 ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

 'Name or IP of Remote SMTP Server
 objMessage.Configuration.Fields.Item _
 ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "gcga-mx01.glynncounty-ga.gov"

 'Server port (typically 25)
 objMessage.Configuration.Fields.Item _
 (" http://schemas.microsoft.com/cdo/configuration/smtpserverpor t") = 25

 objMessage.Configuration.Fields.Update

 '==End remote SMTP server configuration section==

 objMessage.Send
End if
%>

<html>
   <head>
      <title>Send email with CDO</title>
   </head>
   <style>
   .small_box {width: 200px}
   </style>
   <body>
      <form name="sendEmail" action="mail.asp" method="post">
         <table>
   <!--
             <tr>
                <td>Subject:</td>
                <td><input type="text" name="subject" /></td>
             </tr>
  -->
             <tr>
                <td>From:</td>
                <td><input type="text" name="from" value="SOpage@glynncounty-ga.gov" class="small_box" /></td>
             </tr>
             <tr>
                <td>To: </td>
                <td><input type="text" name="to" class="small_box" /></td>
             </tr>
  <!--
             <tr>
                <td>Bcc: </td>
                <td><input type="text" name="bcc" /></td>
             </tr>
  -->
  <!--
             <tr>
                <td>Cc: </td>
                <td><input type="text" name="cc" /></td>
             </tr>
  -->
             <tr>
                <td valign="top">Message: </td>
                <td><textarea name="message" rows="6" cols="30">
</textarea></td>
             </tr>
             <tr>
                <td colspan="2"><input type="submit" name="btnSend"
value="Send" /></td>
             </tr>
         </table>
      </form>
   </body>
</html>

I know the above is most likely rather basic to you all, but I am in the process of learning..  In the simplest form this works fine... But I need the ability to add a person and there sms number  (1112224567@message.alltel.com). Plus make some sort of grouping available for say group titles like.. (administrators, a team, b team etc...) On the page that I currently have above I would like there to be a list of the individuals so you can check one or more of them to send the message to... Does anyobody have some ideas should I use a database etc.. or is there already something out there I can use and just make changes to fit what I am looking for.. 

Some point in time it may help other people to have the ability to text via there sites etc..

Thanks, 

Pete

Back to Top Printable version View ptyo2010's Profile Search for other posts by ptyo2010
 
lupo
SOOP Admins
Avatar

SOOP Admins

Joined: 28 August 2008
National Flag of Belgium Belgium
Posts: 180
Posted: 08 February 2010 at 11:38am | IP Logged Quote lupo

copying/adapting from the standard included PM functionality in phoenix should get you where you want....

imho



__________________
The good thing about reinventing the wheel is that you can get a round one.
Back to Top Printable version View lupo's Profile Search for other posts by lupo
 
ptyo2010
Newbie


Newbie

Joined: 03 February 2010
National Flag of United States United States
Posts: 12
Posted: 08 February 2010 at 11:52am | IP Logged Quote ptyo2010

Hmm.. Well going to take me a long time to understand that coding. I guess I am looking for a rather simple solutions small scale etc..

thanks.

 

Back to Top Printable version View ptyo2010's Profile Search for other posts by ptyo2010
 
AraCam
SOOP Admins
Avatar

SOOP Admins
soop admins

Joined: 19 November 2004
National Flag of United States United States
Posts: 851
Posted: 09 February 2010 at 7:09am | IP Logged Quote AraCam

I get the impression you are asking for general ASP programming help rather than asking how to combine SMS and Soop Portal.  Am I right about that?  If you want to merge SooP and SMS, it's simply a matter of setting up the the SMS email address in the user profile.

If you mean a stand-alone ASP page(s), there are tons of classic asp examples out there for sending email messages.  The only thing different between SMS/email gateways and standard SMS or email:
  • Remembering that SMS texts have a maximum character length much shorter than your average email
  • You need to know both their cell phone number AND their cell phone provider (Sprint, ATT, Verizon, etc.)
Using a database to hold the user names would let you store the email address, SMS number, name, etc., in one spot and not have to hand-modify the web site each time the team assignments change. 

Your question is so general that I'm not really sure how to provide a more complete answer.  IF it's a stand-alone page, I'd use a database to store people, teams/groups, phone numbers, and cell provider info and then display checkboxes for teams and individuals on the email page.  Remember too to secure the page so random site visitors don't suddenly have full access to your team member's SMS.


__________________

I'm a database admin. If you see me running, save your work!
{Cranial Herbs & Rice}

Back to Top Printable version View AraCam's Profile Search for other posts by AraCam Visit AraCam's Homepage
 
ptyo2010
Newbie


Newbie

Joined: 03 February 2010
National Flag of United States United States
Posts: 12
Posted: 09 February 2010 at 8:03am | IP Logged Quote ptyo2010

Sorry.. Yes i am asking for general ASP programming help. I am aware of the text length limitations on SMS and I have the cell phone providers smtp address..  (i.e. 1112223456@alltel.message.com)

I can create the database to hold the email address, sms number etc... I know how to access the database with asp code.

What I don't know is how to display in a form the list of people in the database so the user can select one or multiple individuals to send the SMS to. I am just learning so i look at code and try to figure it out etc... I already have the above posted code working but I have to always put in where it is going.. I don't understand how I can link the TO: spot in the form to the database to select multiple individuals.

Thanks,

pete

 

Back to Top Printable version View ptyo2010's Profile Search for other posts by ptyo2010
 
 
     

Forum Jump  

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic

     
 
  Minimize/Maximize Deactivate Module
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum
 
     

     
 
This page was generated in  0.2031  seconds. Powered by SOOP Portal Raven 1.0