Commercial & open source. Find your way forward.Compare editions
OCS NETWORKS INC / OSS

IntelliDispatch OSS MIT License

The open-source edition. An MIT-licensed core, with optional paid, licensed plugins.

Code About this workspace LicenseRead-only source browser
Public files
SendError.cs
1.2 KB · 42 linesModified Nov 6, 2026 UTC
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{14    public partial class SendError : Form15    {16        public SendError(string errordetailssent)17        {18            InitializeComponent();1920            errordetails.Text = errordetailssent;21        }2223        private void SendButton_Click(object sender, EventArgs e)24        {25            SmtpClient client = new SmtpClient();26            client.Port = 25;27            client.Host = "mail.ocs-networks.com";28            client.EnableSsl = false;29            client.Timeout = 10000;30            client.DeliveryMethod = SmtpDeliveryMethod.Network;31            client.UseDefaultCredentials = false;3233            MailMessage mm = new MailMessage("noreply@intellidispatch.com", "cobrien@ocs-networks.com", "IntelliDispatch Error Notification", errordetails.Text);34            mm.BodyEncoding = UTF8Encoding.UTF8;35            mm.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;3637            client.Send(mm);3839            this.Close();40        }41    }42}