Windows Forms: Send free SMS Message in C#

Sending free sms message in C# Windows Forms Application.

Open your Visual Studio, then create a new project called FreeSms

To send an SMS message using the service in C#, you can use their HTTP API. Here's a basic example of how you can do this using the SmtpClient class:

Drag and drop Label, Button, Textbox controls from the Visual Studio toolbox onto your form designer, then you can design your form as shown below.

free sms via ipipi

Adding a click event handler to the Send button that allows you to send a sms message in c#.

private void btnSend_Click(object sender, EventArgs e)
        SmtpClient smtp = new SmtpClient();
        MailMessage message = new MailMessage();
        smtp.Credentials = new NetworkCredential(txtUsername.Text, txtPassword.Text);
        smtp.Host = "";
        message.From = new MailAddress(string.Format("{0}", txtUsername.Text));
        message.To.Add(string.Format("{0}", txtPhone.Text));
        message.Subject = "FoxLearn";
        message.Body = txtMessage.Text;
        MessageBox.Show("Your message has been successfully sent.", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
    catch (Exception ex)
        MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Error);

To play demo, You need to create an account at ipipi website