Example #1
0
 internal static IAsyncResult BeginSend(SmtpConnection conn, string to, AsyncCallback callback, object state)
 {
     PrepareCommand(conn, to);
     return(CheckCommand.BeginSend(conn, callback, state));
 }
Example #2
0
 internal static string[] Send(SmtpConnection conn, string domain)
 {
     PrepareCommand(conn, domain);
     return(CheckResponse(ReadLinesCommand.Send(conn)));
 }
Example #3
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));
 }
Example #4
0
 internal static IAsyncResult BeginSend(SmtpConnection conn, string domain, AsyncCallback callback, object state)
 {
     PrepareCommand(conn, domain);
     return(ReadLinesCommand.BeginSend(conn, callback, state));
 }
Example #5
0
 internal static LineInfo Send(SmtpConnection conn, string message)
 {
     PrepareCommand(conn, message);
     return(CheckResponse(ReadLinesCommand.Send(conn)));
 }
Example #6
0
 private static void PrepareCommand(SmtpConnection conn, string message)
 {
     conn.BufferBuilder.Append(message);
     conn.BufferBuilder.Append(SmtpCommands.CRLF);
 }
Example #7
0
 internal static IAsyncResult BeginSend(SmtpConnection conn, string type, string message, AsyncCallback callback, object state)
 {
     PrepareCommand(conn, type, message);
     return(ReadLinesCommand.BeginSend(conn, callback, state));
 }
Example #8
0
 internal static LineInfo[] Send(SmtpConnection conn)
 {
     conn.Flush();
     return(conn.Reader.GetNextReplyReader().ReadLines());
 }