Elmah sends error mail on development server, but not on production

Posted by Adrian Grigore on Stack Overflow See other posts from Stack Overflow or by Adrian Grigore
Published on 2010-06-09T11:16:00Z Indexed on 2010/06/09 11:22 UTC
Read the original article Hit count: 372

Filed under:
|

Hi,

I am trying to set up Elmah so that it sends me an e-mail when a new error occurs. This works fine on my development server, but on the production server no e-mail is sent. The exception is logged on the production server, it's just the e-mail that does not get sent.

Here are my elmah configuration settings:

<elmah>
        <security allowRemoteAccess="yes"/>

        <errorMail
     from="<MYGOOGLELOGIN>@googlemail.com"
     to="<MYGOOGLELOGIN>@googlemail.com"
     subject="ERROR From Elmah"
     async="false"
     smtpPort="587"
     useSsl="true"
     smtpServer="smtp.gmail.com"
     userName="<MYGOOGLELOGIN>@googlemail.com"
     password="<MYGOOGLEPASSWORD>" />


</elmah> 

I've tried different mail servers, both local and remote, and I tried both synchronous and asynchronous mail sending but to no avail.

Now I don't have the slightest idea how to proceed (apart from debugging Elmah on my production server, which seems like a lot of effort to set up). Please help!

Thanks,

Adrian

Edit: I might also add that I tried switching off the firewall on the production server, but that did not make any difference either.

© Stack Overflow or respective owner

Related posts about smtp

Related posts about elmah