Christopherx
Well-known member
- Joined
- Jul 4, 2010
- Messages
- 58
- Programming Experience
- Beginner
Sub Main()
Try
Dim mail As New MailMessage
Dim client As New SmtpClient
client.Host = "192.168.0.4"
client.Port = 80
mail.To.Add("chris_cooney@hotmail.co.uk")
mail.From = New MailAddress("chris_cooney@hotmail.co.uk")
mail.Body = "Just testing mate. juuuust testing"
client.Send(mail)
Console.WriteLine("happy days!")
Console.ReadKey()
Catch e As Exception
Console.WriteLine(e.Message)
Console.ReadKey()
End Try
I get an error that simply states.. "Failure sending mail".
Any suggestions ?
Try
Dim mail As New MailMessage
Dim client As New SmtpClient
client.Host = "192.168.0.4"
client.Port = 80
mail.To.Add("chris_cooney@hotmail.co.uk")
mail.From = New MailAddress("chris_cooney@hotmail.co.uk")
mail.Body = "Just testing mate. juuuust testing"
client.Send(mail)
Console.WriteLine("happy days!")
Console.ReadKey()
Catch e As Exception
Console.WriteLine(e.Message)
Console.ReadKey()
End Try
I get an error that simply states.. "Failure sending mail".
Any suggestions ?
Last edited: