Click here to Skip to main content
15,897,519 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: read and write to smart cards Pin
fresh2g628-Feb-09 2:51
fresh2g628-Feb-09 2:51 
GeneralRe: read and write to smart cards Pin
Dave Kreskowiak28-Feb-09 4:20
mveDave Kreskowiak28-Feb-09 4:20 
AnswerRe: read and write to smart cards Pin
Steven J Jowett26-Feb-09 6:05
Steven J Jowett26-Feb-09 6:05 
QuestionI want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
Johrans26-Feb-09 3:15
Johrans26-Feb-09 3:15 
AnswerRe: I want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
vaghelabhavesh26-Feb-09 3:35
vaghelabhavesh26-Feb-09 3:35 
GeneralRe: I want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
Johrans26-Feb-09 3:47
Johrans26-Feb-09 3:47 
GeneralRe: I want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
vaghelabhavesh26-Feb-09 3:56
vaghelabhavesh26-Feb-09 3:56 
GeneralRe: I want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
Johrans26-Feb-09 4:04
Johrans26-Feb-09 4:04 
This is what i have maybe see you whats wrong?
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
        Try
            Dim SmtpServer As New SmtpClient()
            Dim mail As New MailMessage()
            SmtpServer.Credentials = New  _
  Net.NetworkCredential("My mail", "password")
            SmtpServer.Port = 587
            SmtpServer.Host = "smtp.gmail.com"
            mail = New MailMessage()
            mail.From = New MailAddress("my mail")
            mail.To.Add("textbox1.text")
            mail.Subject = "Test Mail"
            mail.Body = ("textbox2.text")
            SmtpServer.Send(mail)
            MsgBox("mail send")
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try

    End Sub

   
End Class

GeneralRe: I want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
vaghelabhavesh26-Feb-09 4:54
vaghelabhavesh26-Feb-09 4:54 
GeneralRe: I want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
Johrans26-Feb-09 21:36
Johrans26-Feb-09 21:36 
GeneralRe: I want a script to send a MAIL from a GMAIL account to a other account in visual basic 2008 Pin
vaghelabhavesh27-Feb-09 2:44
vaghelabhavesh27-Feb-09 2:44 
Questionprinting failes... Pin
Stephen Lintott26-Feb-09 1:22
Stephen Lintott26-Feb-09 1:22 
AnswerRe: printing failes... Pin
Stephen Lintott26-Feb-09 1:43
Stephen Lintott26-Feb-09 1:43 
GeneralRe: printing failes... Pin
Dave Kreskowiak26-Feb-09 6:04
mveDave Kreskowiak26-Feb-09 6:04 
QuestionEmail through VB code Pin
RajaAhmed25-Feb-09 23:35
RajaAhmed25-Feb-09 23:35 
AnswerRe: Email through VB code Pin
Jay Royall26-Feb-09 0:24
Jay Royall26-Feb-09 0:24 
Questionhow to convert any string to unicode encoding in vb.net code Pin
ahlamissa25-Feb-09 23:18
ahlamissa25-Feb-09 23:18 
AnswerRe: how to convert any string to unicode encoding in vb.net code Pin
ABitSmart26-Feb-09 0:04
ABitSmart26-Feb-09 0:04 
AnswerRe: how to convert any string to unicode encoding in vb.net code Pin
Rupesh Kumar Swami26-Feb-09 1:54
Rupesh Kumar Swami26-Feb-09 1:54 
QuestionHow to Change Cell Backcolor if Datagridview2.item.value = Datagridview1.item.value [modified] Pin
ikanbobo25-Feb-09 23:15
ikanbobo25-Feb-09 23:15 
AnswerRe: How to Change Cell Backcolor if Datagridview2.item.value = Datagridview1.item.value [modified] Pin
Sebastian Br.26-Feb-09 1:08
Sebastian Br.26-Feb-09 1:08 
GeneralRe: How to Change Cell Backcolor if Datagridview2.item.value = Datagridview1.item.value [modified] Pin
ikanbobo26-Feb-09 2:38
ikanbobo26-Feb-09 2:38 
GeneralRe: How to Change Cell Backcolor if Datagridview2.item.value = Datagridview1.item.value Pin
Sebastian Br.26-Feb-09 3:00
Sebastian Br.26-Feb-09 3:00 
GeneralRe: How to Change Cell Backcolor if Datagridview2.item.value = Datagridview1.item.value Pin
ikanbobo26-Feb-09 3:22
ikanbobo26-Feb-09 3:22 
Questiondeploying VB.net2005 project with Crystal report [modified] Pin
hrishiS25-Feb-09 23:11
hrishiS25-Feb-09 23:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.