Last post Dec 09, 2009 10:11 AM by maingi4
Dec 09, 2009 06:28 AM|maingi4|LINK
I have an exception policy block with a logging handler pointing to a category, the category has the following trace listeners:
The settings for the email trace listener are:
I keep getting an error unable to connect to remote server. If i send an email via .Net through my own code (system.Net.Mail) it goes through successfully and lands up in my pickup folder, however in this case there is no mail in the pickup and an error
log is generated which says connect failure.
Can somebody please tell me where i'm going wrong.
Dec 09, 2009 08:08 AM|sukumarraju|LINK
SMTP server: 127.0.0.1
This has to be your SMTP server. check the SMTP server and replace the 127.0.0.1. Note that your .Net code works fine as long as it is on your local machine. It does not work when you upload the same on to web server.
Here is how Listeners setting should look like:
<add toAddress="<To Address>"
smtpServer="<your SMTP server"
formatter="Text Formatter" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.EmailTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=184.108.40.206, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="None" filter="All" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.EmailTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Email TraceListener"/>
Dec 09, 2009 10:11 AM|maingi4|LINK
Thanks for replying...
isnt there any setting through which i can run it from my local and get it in my pick up folder?