CSharp Sending SMS via SMTP

From SMS Wiki
Revision as of 14:53, 11 May 2007 by Administrator (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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");
        }
    }
}