Skip to content

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

Open

Description

@GoogleCodeExporter
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="error@domain.co.uk">
            <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 m...@marcpell.com 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions