sending emails from the enterprise library 5 from hosted enviroment -


I am creating a .NET 4 application and I want to use Enterprise Library 5 to handle my error I am

I'm trying to set up email, but I can not get it to work on my hosted environment. . I work at it locally but can get an email triggered on a live environment.

I have setup my web.config to see something like this

  & lt; MailSettings & gt; & Lt ;! - & lt; Smtp deliveryMethod = "Specified PickupDirectory" & gt; & Lt; Specified pickup directory pickup directory locking = "C: \ MailDrop" /> & Lt; / Smtp & gt; - & gt; & Lt; Smtp = "no-reply@mydomain.com" & gt; & Lt; Network Host = "Localhost" /> & Lt; / Smtp & gt; & Lt; / MailSettings & gt;  

Looks like audience settings

  & lt; 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.44.0, culture = neutral, public keynote = "toadress =" me@mydomain.com "from adres =" error@mydomain.com "SubjectLineStarter =" Error !! "SmtpServer =" localhost "smtpPort =" 25 "formatter =" text format "authenticationmode =" none "/>  

Do I need to take some extra steps to send emails to the Enterprise Library? I have tested sending an email using system.net and I am able to fix email.


Comments