Summary :
|
Views :
0
Published :
Sunday, April 16, 2006
By
HyperLink
|
Dear All,
I have written a vb.net program 2 send email to a yahoo.com (receiveaccount@yahoo.com) account using another account (sendaccount@mycompany.com) and i hav written the following code 4 it:
Dim filename As String = "C:\testMail.txt"
Dim myMail = New MailMessage("sendaccount@mycompany.com", "receiveaccount@yahoo.com")
Dim myAttach = New Attachment(filename)
Dim client As New SmtpClient
client.Host = "localhost"
Dim basicAuthenticationInfo
|