Continually Improving.... let us know how support@devdiamond.net Sign in | Sign up
home articles news blog forum  

 
 


 
Skip Navigation LinksHome > Forum > Problem sending mail using SmtpClient as localhost
 
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