Hi there, I am building a .net 4 application and I am wanting to use the enterprise library 5 for my error handling.
I am trying to setup email however I cant get it to work on my hosted enviroment. I can get it work locally however no emails are been triggered on the live enviroment.
I have setup my web.config to look something like this
<mailSettings>
<!--<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="c:\maildrop" />
</smtp>-->
<smtp from="[email protected]">
<network host="localhost"/>
</smtp>
</mailSettings>
The listeners settings look like
<add name="Email Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.EmailTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=null"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.EmailTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=null"
toAddress="[email protected]" fromAddress="[email protected]"
subjectLineStarter="ERROR!!" smtpServer="localhost" smtpPort="25"
formatter="Text Formatter" authenticationMode="None" />
Do I need to do some extra steps to get the enterprise library to send emails? I have tested sending an email using system.net and I am able to send emails ok.