Hi,
I do not have an e-mail account from my internet service provider.
I have an e-mail account of gmail, and I want to send an e-mail from an application that I'll build with Microsoft Visual Basic 2005 Express Edition.
Example that not work:
But if I have an e-mail account from my internet service provider and I'll change the line:VB Code:
Imports System.Net.Mail Dim Mail As New System.Net.Mail.MailMessage With Mail .To.Add("MailAddress") .From = New MailAddress("MailAddress") .Subject = "Some Subject" .Body = "Some Body" End With Dim smtp As New SmtpClient("smtp.gmail.com") smtp.Send(Mail) smtp = Nothing Mail.Dispose() MessageBox.Show("Your message has been sent")
Then the program is working OKVB Code:
Dim smtp As New SmtpClient("smtp.gmail.com") To: Dim smtp As New SmtpClient("smtp.internet service provider")
Can somebody help me or have suggestion or some example?
Thanks in advance
