Skip to content

Provide default for "razor.email.base.dir" #7

@jamescurran

Description

@jamescurran

Presently the parameter "razor.email.base.dir" must be set in the web.config, or it throws an exception upon use.

This violates the principle of "Convention Over Configuration", which MVC tries to promote.

Basically, "C over C" mean "Every parameter should have a sensible default, so it just works, out of the box". For example, the location of the views is a configurable option, but you don't have to set it, as it defaults to the sensible "~/Views"

Similarly, "razor.email.base.dir" should have a default. I'd suggested "~/Views/RazorMail" unless someone has an alternate suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions