Elmah logs errors correctly but doesn't send any emails. It sends mail correctly when running locally with identical code and web.config. Settings: Code: <errorMail from="CQC Error <[email protected]>" to="[email protected]" subject="Error" async="true" smtpPort="25" smtpServer="smtp.mydomain.com" userName="[email protected]" password="xxxxxxxxxxxxxx" /> I'm guessing it's an authentication problem, since it works locally where I run the web as an administrator, while the public web is run by an anonymous user (app pool identity). Any ideas how I can fix this?