internal static void Send(SmtpConnection conn) { string str; PrepareCommand(conn); CheckResponse(CheckCommand.Send(conn, out str), str); }
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 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); }
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); }
internal static void Send(SmtpConnection conn) { PrepareCommand(conn); string response; SmtpStatusCode statusCode = CheckCommand.Send(conn, out response); CheckResponse(statusCode, response); }
internal static bool EndSend(IAsyncResult result, out string response) { SmtpStatusCode statusCode = (SmtpStatusCode)CheckCommand.EndSend(result, out response); return(CheckResponse(statusCode, response)); }
internal static IAsyncResult BeginSend(SmtpConnection conn, string to, AsyncCallback callback, object state) { PrepareCommand(conn, to); return(CheckCommand.BeginSend(conn, callback, state)); }
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)); }
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)); }