I'm trying to make an e-mailprogram and got this code:
VB Code:
'create the mail message
Dim mail As New System.Net.Mail.MailMessage()
'set the addresses
'set the content
mail.Subject = "This is an email"
mail.Body = "this is the body content of the email."
'send the message
Dim smtp As New System.Net.Mail.SmtpClient("127.0.0.1")
smtp.Send(mail)
But can he e-mail from 127.0.0.1 (wich is my computer -> localhost) and what is the strange error he gives for "SmtpException was unhandled" What does that mean?
Cheers,
Thomas