| Posted: 08 February 2010 at 10:56am | IP Logged
|
|
|
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
|