internal static void Send(SmtpConnection conn)
        {
            string str;

            PrepareCommand(conn);
            CheckResponse(CheckCommand.Send(conn, out str), str);
        }
Exemple #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));
        }
Exemple #3
0
        internal static void EndSend(IAsyncResult result)
        {
            string         response;
            SmtpStatusCode statusCode = (SmtpStatusCode)CheckCommand.EndSend(result, out response);

            CheckResponse(statusCode, response);
        }
        internal static void Send(SmtpConnection conn, byte[] command, string from)
        {
            string str;

            PrepareCommand(conn, command, from);
            CheckResponse(CheckCommand.Send(conn, out str), str);
        }
Exemple #5
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);
        }
Exemple #6
0
        internal static void Send(SmtpConnection conn)
        {
            PrepareCommand(conn);
            string         response;
            SmtpStatusCode statusCode = CheckCommand.Send(conn, out response);

            CheckResponse(statusCode, response);
        }
Exemple #7
0
        internal static bool EndSend(IAsyncResult result, out string response)
        {
            SmtpStatusCode statusCode = (SmtpStatusCode)CheckCommand.EndSend(result, out response);

            return(CheckResponse(statusCode, response));
        }
Exemple #8
0
 internal static IAsyncResult BeginSend(SmtpConnection conn, string to, AsyncCallback callback, object state)
 {
     PrepareCommand(conn, to);
     return(CheckCommand.BeginSend(conn, callback, state));
 }
Exemple #9
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));
 }
Exemple #10
0
 internal static IAsyncResult BeginSend(SmtpConnection conn, string domain, AsyncCallback?callback, object?state)
 {
     PrepareCommand(conn, domain);
     return(CheckCommand.BeginSend(conn, callback, state));
 }
 internal static IAsyncResult BeginSend(SmtpConnection conn, byte[] command, string from, AsyncCallback callback, object state)
 {
     PrepareCommand(conn, command, from);
     return(CheckCommand.BeginSend(conn, callback, state));
 }