MailMessage mailMessage = new MailMessage(); mailMessage.From = new MailAddress("[email protected]", "Bernard Lessard"); mailMessage.To.Add(new MailAddress("[email protected]")); mailMessage.Subject = "Your BabyfootClub username and password."; mailMessage.Body = "Your username is: " + sUsername + "\r\n"; mailMessage.Body += "Your password is: " + sPasswrod + "\r\n"; SmtpClient smtpClient = new SmtpClient("smtp.live.com", 587); smtpClient.EnableSsl = true; smtpClient.UseDefaultCredentials = false; smtpClient.Credentials = new System.Net.NetworkCredential("[email protected]", "mypassword"); smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network; smtpClient.Send(mailMessage);