my first program quicksend

Posts 1–5 of 5 · Page 1 of 1
my first program quicksend
I made my first program but im not ganna post it bc no one will probably use it but its a program were you send an email to any hotmail address you want

Code:
Imports System.Net.Mail

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim mail As New MailMessage
        mail.Subject = TextBox4.Text
        mail.To.Add(TextBox1.Text)
        mail.From = New MailAddress(TextBox2.Text)
        mail.Body = TextBox3.Text

        Dim SMTP As New SmtpClient("smtp.live.com")
        SMTP.EnableSsl = True
        SMTP.Credentials = New System.Net.NetworkCredential(TextBox2.Text, TextBox5.Text)
        SMTP.Port = "587"
        SMTP.Send(mail)
    End Sub

    Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox3.Text = ""
        TextBox5.Text = ""
        
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Me.Close()
    End Sub
End Class
quicksend.bmp299 KB · 9 downloads
How did you designed that ?
Read a chapter in some book
Quote Originally Posted by thatnewguy View Post
Read a chapter in some book
what book is it called? :P
@thatnewguy Can U Make A Tutorial For This??? I Would Be Happy but anyways
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?