示例#1
0
        public void SendMail(string senderName, string receivers, string subject, string body)
        {
            var message = new NewMailMessage();
            message.SenderName = senderName;
            message.Time = DateTime.Now;
            message.DestinationList = receivers;
            message.Subject = subject;
            message.Body = body;

            message.Normalize();

            ConnectionManager.Instance.Send("newMail");
            ConnectionManager.Instance.Send(message.Serialize());

            ConnectionManager.Instance.Close();
        }