winforms - Can I send SMS Messages from a C# Application? - Stack Overflow
Tue Feb 28 2023 16:37:59 GMT+0000 (Coordinated Universal Time)
Saved by
@javicinhio
var message = new MailMessage();
message.From = new MailAddress("sender@foo.bar.com");
message.To.Add(new MailAddress("5551234567@txt.att.net"));//See carrier destinations below
//message.To.Add(new MailAddress("5551234568@txt.att.net"));
//message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
var client = new SmtpClient();
client.Send(message);
content_copyCOPY
https://stackoverflow.com/questions/31246531/can-i-send-sms-messages-from-a-c-sharp-application
Comments