Skip to content
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

Utilising the "SpecifiedPickupDirectory" in the web.config ELMAH will not save emails to the specified folder #358

Open
GoogleCodeExporter opened this issue Jun 3, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Steps that will reproduce the problem:

1. Add the following section to your web.config in place of any other similar 
section:

<system.net>
    <mailSettings>
        <smtp deliveryMethod="SpecifiedPickupDirectory" from="[email protected]">
            <specifiedPickupDirectory pickupDirectoryLocation="C:\{Path}\App_Data\"/>
        </smtp>
    </mailSettings>
</system.net>

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 the App_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. 

Original issue reported on code.google.com by [email protected] on 8 Apr 2014 at 8:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant