SMS Configuration
Sending an sms on click of submit button in sharepoint?? Can any one help me?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Aug 18, 2011, 3:01 AM EDT
To send sms from site, you need to get sms gateways account. using that gateway you can send SMS like the below one,
MailMessage mail = new MailMessage();
mail.To = toPhoneNumber + "@smsgateprovider.com";
mail.From = login + "@smsgateprovider.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 = "smsgateprovider.com";
System.Web.Mail.SmtpMail.Send(mail);
chetana BS5 reputationPosted Aug 18, 2011, 8:52 PM EDT
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Aug 18, 2011, 10:47 PM EDT