Create a MailMessage specifying the sender, recipient, subject and body content.

Create an Smtp client using the localhost as the host. Set the credentials for the system user.

Use the SmtpClient to send the message.