How can we log the SMTP conversation with SmtpClient?
问题 E.g., for troubleshooting I need to see what SMTP messages go back and forth: OUT : EHLO machinename IN : 250-ReallyCoolEmailServer Hello [10.24.41.72] IN : 250-SIZE IN : 250-PIPELINING IN : (...and so on...) OUT : MAIL FROM: <some.address@example.com> IN : 250 <some.address@example.com>... Sender ok ...and so on. I'm not finding any logging options in the documentation. The only questions here I can find about SmtpClient either don't talk about seeing the actual conversattion, or talk about