Have you looked into using 3rd party mail components like AspNetEmail:
http://www.aspnetemail.com/
or an open source one:
http://dotnetopenmail.sourceforge.net/
Both of those capture their interaction with the mail server:
READ> 220 smpt.example.com
SENT> EHLO acme
READ> 250-mail.example.co
Hello,
I am able to log messages on one pc (XP prof) from a .net web service with
out any issues to any directory (provided I give permissions ASPNET user).
But when I move the same code to another pc (XP prof), it does not even
create the log file (either in the Inetpub\wwwroot\ or any other
dire
Hi all-
I've noticed the SmtpAppender occasionally fails to send emails. I've run it
with log4net debugging enabled and got this from the logs:
log4net: Hierarchy: Shutdown called on Hierarchy [log4net-default-repository]
log4net:ERROR [SmtpAppender] Error occurred while sending e-mail notificat