private void SendMailFrom() { IAsyncResult result = MailCommand.BeginSend(this.connection, SmtpCommands.Mail, this.from, sendMailFromCompleted, this); if (result.CompletedSynchronously) { MailCommand.EndSend(result); this.SendTo(); } }
private void SendMailFrom() { IAsyncResult result = MailCommand.BeginSend(_connection, SmtpCommands.Mail, _from, _allowUnicode, s_sendMailFromCompleted, this); if (!result.CompletedSynchronously) { return; } MailCommand.EndSend(result); SendToCollection(); }