PEHLA KALMA

PEHLA KALMA
Sanaullah Sajid

how make email sender with visual basic

                                                                     Email sender.


Friends today i tell you about how make email sender with visual basic.
Email sender make easy with visual basic.
Start to made email sender .











For mre Visual studio code visit this webste : Visual Basic



Step1.
Add some data in form.
5 textbox.
5 labels.
1 butten.

Step2.

Add code in butten 1

      Dim Mail As New MailMessage
        Mail.Subject = TextBox5.Text + " By SSM_7"
        Mail.To.Add(TextBox3.Text)
        Mail.From = New MailAddress(TextBox1.Text)
        Mail.Body = TextBox4.Text + "  SSM_7   More download vb code for visit my website http://engineersoftpk.blogspot.com/"

        Dim SMTP As New SmtpClient("smtp.gmail.com")
        SMTP.EnableSsl = True
        SMTP.Credentials = New System.Net.NetworkCredential(TextBox1.Text, TextBox2.Text)
        SMTP.Port = "587"
        SMTP.Send(Mail)

Step3.
Add code above all code.

Imports System.Net.Mail




Full form 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 = TextBox5.Text + " By SSM_7"
        Mail.To.Add(TextBox3.Text)
        Mail.From = New MailAddress(TextBox1.Text)
        Mail.Body = TextBox4.Text + "  SSM_7   More download vb code for visit my website http://engineersoftpk.blogspot.com/"

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

End Class

Thanks for visit my website.
Share my website on your friends in facebook twitter gmail.

Download complete project.
file information.
File size           :70.72kb
file in               :Zip
Zip password  :  ssm7
                                                           File only for visual basic 2008,2010
                                                           DOWNLOAD