Question : VB.Net Hotmail/Windows Live

I have a VB.Net Application that needs to be able to send emails using a Hotmail/Windows Live Account. From what i have researched, I found that I need to use these settings:
     
 Hotmail Incoming Mail Server (POP3) - pop3.live.com (logon using Secure Password Authentification - SPA, mail server port: 995)

 Hotmail Outgoing Mail Server (SMTP) - smtp.live.com (SSL enabled, port 25)

Now how would I be able to use that to send a simple, text only email from vb.net?

Answer : VB.Net Hotmail/Windows Live

Very similar.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
Private Sub SendByEmail()
        Try
            Dim mm As New System.Net.Mail.MailMessage("[email protected]", "[email protected]")
            mm.Subject = "Subject here"
            mm.Body = "Message body here."
            mm.IsBodyHtml = False
            Dim smtp As New System.Net.Mail.SmtpClient("smtp.live.com", 25)
            smtp.Send(mm)
        Catch ex As Exception
            Console.Write(ex.ToString())
        End Try
    End Sub
Random Solutions  
 
programming4us programming4us