Skip to content

Emails not working in production when publishing to IIS #52

@messaddek

Description

@messaddek

Hello,
When publishing to IIS, email are not sent.

var projectPath = Directory.GetParent(Directory.GetCurrentDirectory()).FullName;
var templateProject = Assembly.GetExecutingAssembly().GetName().Name;
_templatesPath = Path.Combine(projectPath, templateProject, "Templates");

This code section is not returning the correct path. When publishing, Templates folder is generated directly in the application directory, but the program is looking into the wwroot\Application\Templates folder.

Thanks

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