1using System;2using System.Collections.Generic;3using System.ComponentModel;4using System.Data;5using System.Drawing;6using System.Linq;7using System.Text;8using System.Windows.Forms;9using System.Net.Mail;101112namespace IntelliDispatch13{14public partial class SendError : Form15{16public SendError(string errordetailssent)17{18InitializeComponent();1920errordetails.Text = errordetailssent;21}2223private void SendButton_Click(object sender, EventArgs e)24{25SmtpClient client = new SmtpClient();26client.Port = 25;27client.Host = "mail.ocs-networks.com";28client.EnableSsl = false;29client.Timeout = 10000;30client.DeliveryMethod = SmtpDeliveryMethod.Network;31client.UseDefaultCredentials = false;3233MailMessage mm = new MailMessage("noreply@intellidispatch.com", "cobrien@ocs-networks.com", "IntelliDispatch Error Notification", errordetails.Text);34mm.BodyEncoding = UTF8Encoding.UTF8;35mm.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;3637client.Send(mm);3839this.Close();40}41}42}