Example code to send
text messages written in C#.
using System.Web.Mail;
.
.
.
string toPhoneNumber = "DestinationPhoneNumber";
string login = "YoureIPIPIUsername";
string password = "YourPassword";
string compression = "Compression Option goes here - find out more";
string body = "Your Message";
System.Web.Mail.MailMessage mail = new System.Web.Mail.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 );
Note:
This implementation requires .Net Framework version 1.1 or higher.
|