Пример #1
0
        internal static SmtpStatusCode Send(SmtpConnection conn, out string response)
        {
            conn.Flush();
            SmtpReplyReader reader = conn.Reader.GetNextReplyReader();
            LineInfo        info   = reader.ReadLine();

            response = info.Line;
            reader.Close();
            return(info.StatusCode);
        }
Пример #2
0
 internal static LineInfo[] Send(SmtpConnection conn)
 {
     conn.Flush();
     return(conn.Reader.GetNextReplyReader().ReadLines());
 }