none
sending sms in sharepoint

    Question

  • Hi guys

    Any Idea how to send sms in sharepoint

    i want it to be as web part

    thanks

    • Changed type Mike Walsh FIN Wednesday, February 18, 2009 5:12 AM Always use the Question type so people get credit for their responses
    Wednesday, September 17, 2008 2:33 PM

All replies

  • Hi there

    The answer to this is not as straightforward as the question. Firstly, do you have an SMS provider already, or are you planning on hosting an SMS gateway yourself?

    If the answer is no to both the above then you need to first determine how you are going to send the SMS once a process has created one.

    Stu

    Wednesday, September 17, 2008 4:08 PM
  • No i don't have sms provider but am searching for one

    i found some codes on the net but they didn't help
    so can u help more
    thanks alllllooooooooot

    Wednesday, September 24, 2008 10:52 AM
  • You need a provider - or a way of actually passing the SMS onto a gateway. You can't really do anything else until you know how you will get the SMS into the airwaves!

    Once you have a provider they will usually have an API or a web service you can use to call their sending methods. Once you have this you can code a solution to sending the SMS, then the web part to pass the information to the service.

    Stu

    Wednesday, September 24, 2008 2:18 PM
  • i found this sms provider ipip.com
    they supported me with this code


    private void button1_Click(object sender, EventArgs e)
            {
                string toPhoneNumber = toTextBox.Text;
                string login = fromTextBox.Text;
                string password = passTextBox.Text;
                string compression = subjectTextBox.Text;
                string body = bodyTextBox.Text;


                MailMessage mail = new MailMessage();
                mail.To = toPhoneNumber + "@sms.ipipi.com";
                mail.From = login + "@ipipi.com";
                mail.Subject = compression;
                mail.Body = body;
                mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
                mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", login);
                mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", password);


                System.Web.Mail.SmtpMail.SmtpServer = "ipipi.com";
                System.Web.Mail.SmtpMail.Send(mail);
               


                /*set the addresses
                mail.From = new MailAddress("me@mycompany.com");
                mail.To.Add("you@yourcompany.com");

                //set the content
                mail.Subject = "This is an email";
                mail.Body = "this is a sample body";

                //send the message
                SmtpClient smtp = new SmtpClient("127.0.0.1");
                smtp.Send(mail);*/
            }
        }
    }

    but it didnt work
    Any ideas

    Monday, October 06, 2008 11:38 AM