Exemplo n.º 1
0
        internal static bool Send(SmtpConnection conn, string to, out string response)
        {
            PrepareCommand(conn, to);
            SmtpStatusCode statusCode = CheckCommand.Send(conn, out response);

            return(CheckResponse(statusCode, response));
        }
        internal static void Send(SmtpConnection conn)
        {
            string str;

            PrepareCommand(conn);
            CheckResponse(CheckCommand.Send(conn, out str), str);
        }
        internal static void Send(SmtpConnection conn, byte[] command, string from)
        {
            string str;

            PrepareCommand(conn, command, from);
            CheckResponse(CheckCommand.Send(conn, out str), str);
        }
Exemplo n.º 4
0
        internal static void Send(SmtpConnection conn, byte[] command, MailAddress from, bool allowUnicode)
        {
            PrepareCommand(conn, command, from, allowUnicode);
            string         response;
            SmtpStatusCode statusCode = CheckCommand.Send(conn, out response);

            CheckResponse(statusCode, response);
        }
Exemplo n.º 5
0
        internal static void Send(SmtpConnection conn)
        {
            PrepareCommand(conn);
            string         response;
            SmtpStatusCode statusCode = CheckCommand.Send(conn, out response);

            CheckResponse(statusCode, response);
        }