Hi , I have a same problem.
Here is my code with asp.net interface & vb.net behind.
Dim mailer As New System.Net.Mail.SmtpClient()
Dim mailMsg As New System.Net.Mail.MailMessage()
With mailMsg
.From = New System.Net.Mail.MailAddress(<my maildress>)
.Subject = "Test"
.Body = "Test"
End With
With mailer
.Host = "smtp-mail.outlook.com"
.EnableSsl = True
.Port = 587
.Credentials = New System.Net.NetworkCredential(<my maildress>, <my password>)
End With
Try
mailMsg.To.Add(New System.Net.Mail.MailAddress(<my mailadress>))
mailer.Send(mailMsg)
Catch ex As Exception
Throw ex
End Try
Thank you!