Try the following:
private void SendEmail(string from, string to, string subject, string message)
{
using (var email = new System.Net.Mail.MailMessage())
{
email.From = new System.Net.Mail.MailAddress(from);
email.To.Add(to);
email.Subject = subject;
email.Body = message;
var smtp = new System.Net.Mail.SmtpClient("IP ADDRESS HERE");
smtp.Send(email);
}
}
Hope it helps, cheers.