Пример #1
0
        // method for sending mail
        private void FireRecieveEvent(object body)
        {
            SMTP Mail = new SMTP();

            if (MessageReceived != null)
            {
                MessageReceived(this, new MessageEventArgs(body));
                string message = body.ToString();
                Mail.SendMail(message);
            }
        }