C# 从SmtpClient获取SMTP服务器问候邮件
是否有任何方法可以使用.NETC# 从SmtpClient获取SMTP服务器问候邮件,c#,.net,smtp,smtpclient,C#,.net,Smtp,Smtpclient,是否有任何方法可以使用.NETSmtpClient获取SMTP服务器问候邮件 问候语是SMTP服务器响应的第一行: S: 220 smtp.example.com ESMTP Postfix <----- I need this line C: HELO relay.example.org S: 250 Hello relay.example.org, I am glad to meet you C: MAIL FROM:<bob@example.org> S: 250
SmtpClient
获取SMTP服务器问候邮件
问候语是SMTP服务器响应的第一行:
S: 220 smtp.example.com ESMTP Postfix <----- I need this line
C: HELO relay.example.org
S: 250 Hello relay.example.org, I am glad to meet you
C: MAIL FROM:<bob@example.org>
S: 250 Ok
C: RCPT TO:<alice@example.com>
S: 250 Ok
C: RCPT TO:<theboss@example.com>
S: 250 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: From: "Bob Example" <bob@example.org>
C: To: "Alice Example" <alice@example.com>
C: Cc: theboss@example.com
C: Date: Tue, 15 January 2008 16:02:43 -0500
C: Subject: Test message
C:
C: Hello Alice.
C: This is a test message with 5 header fields and 4 lines in the message body.
C: Your friend,
C: Bob
C: .
S: 250 Ok: queued as 12345
C: QUIT
S: 221 Bye
{The server closes the connection}
S:220 smtp.example.com ESMTP PostfixSmtpClient设计用于提取smtp的详细信息,例如:
您最好打开到SMTP服务器的连接,并从该服务器获得响应