Difference between revisions of "CSharp Sending SMS via SMTP"
From SMS Wiki
(New page: <source lang="csharp"> using System; using System.Collections.Generic; using System.Text; using System.Net.Mail; using System.Net; namespace ConsoleApplication1 { class Program { ...) |
(No difference)
|
Latest revision as of 15:53, 11 May 2007
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"); } } }