CSharp Sending SMS via SMTP

From SMS Wiki
Jump to: navigation, search
using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Mail;
using System.Net;
 
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            SmtpClient client = new SmtpClient("smtp.upsidewireless.com");
            client.Credentials = new NetworkCredential("yourusername", "yourpassword");
            client.Send("yourusername@smtp.upsidewireless.com", "+11111111@sms.upsidewireless.com", "", "Your Message");
        }
    }
}