Ejemplo n.º 1
0
        internal static void EndSend(IAsyncResult result)
        {
            string         response;
            SmtpStatusCode statusCode = (SmtpStatusCode)CheckCommand.EndSend(result, out response);

            CheckResponse(statusCode, response);
        }
Ejemplo n.º 2
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));
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        internal static void Send(SmtpConnection conn)
        {
            PrepareCommand(conn);
            string         response;
            SmtpStatusCode statusCode = CheckCommand.Send(conn, out response);

            CheckResponse(statusCode, response);
        }
Ejemplo n.º 5
0
        internal static bool EndSend(IAsyncResult result, out string response)
        {
            SmtpStatusCode statusCode = (SmtpStatusCode)CheckCommand.EndSend(result, out response);

            return(CheckResponse(statusCode, response));
        }
Ejemplo n.º 6
0
 internal static IAsyncResult BeginSend(SmtpConnection conn, string to, AsyncCallback callback, object state)
 {
     PrepareCommand(conn, to);
     return(CheckCommand.BeginSend(conn, callback, state));
 }
Ejemplo n.º 7
0
 internal static IAsyncResult BeginSend(SmtpConnection conn, byte[] command, MailAddress from,
                                        bool allowUnicode, AsyncCallback callback, object state)
 {
     PrepareCommand(conn, command, from, allowUnicode);
     return(CheckCommand.BeginSend(conn, callback, state));
 }