SMS Configuration
Sending an sms on click of submit button in sharepoint?? Can any one help me?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Aug 19, 2011, 2:47 AM
chetana BSPosted Aug 19, 2011, 12:52 AM
Jaganathan BantheswaranPosted Aug 18, 2011, 7:01 AM
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);