-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using "SpecifiedPickupDirectory" in web.config will not save emails to specified folder #358
Comments
Is the Reported by @atifaziz on 2014-04-08 20:01:00
|
Reported by |
Have you tried downloading and running the demo app that also writes error mails to a local directory? Try the following:
Do you see error mail (EML) files being produced by the demo web? Reported by @atifaziz on 2014-04-08 20:40:13 |
I'm sure that <elmah>
<security allowRemoteAccess="true" />
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="FinIS" />
<!--
NOTE: additional errorMail settings if we want to have other values than in system.net/mailSettings/smtp/host
smtpServer="mySmtp" smtpPort="25" userName="[email protected]" password="password"
useSsl="true"
-->
<errorMail
from="[email protected]"
to="[email protected]"
subject="ELMAH Error from my system"
async="true" />
<system.net>
<mailSettings>
<!-- NOTE: set delivery method to: Network to begin send mails -->
<smtp deliveryMethod="SpecifiedPickupDirectory"
from=""Your name" <[email protected]>"
>
<specifiedPickupDirectory pickupDirectoryLocation="c:\temp\mail\" />
<network
host="mail.hostmaster.sk" port="465"
userName="[email protected]" password="pwd"
enableSsl="true"
/>
</smtp>
</mailSettings>
</system.net> Reported by |
It works for me as well |
Steps that will reproduce the problem:
1. Add the following section to your
web.config
in place of any other similar section:2. Trigger an exception that was previously being emailed by Elmah.
I would expect the email that I would have received to be saved in the location specified in the
web.config
. Instead, the error is logged but no email is saved. I have tried theApp_Data
path as well as a new directory in the root of my C:\ drive, both with no success. I have set up a simple email method separate from ELMAH and this does save a copy of the email message to the specified directory.Originally reported on Google Code with ID 358
Reported by
[email protected]
on 2014-04-08 08:23:55The text was updated successfully, but these errors were encountered: