N-Tier-Architecture icon indicating copy to clipboard operation
N-Tier-Architecture copied to clipboard

Emails not working in production when publishing to IIS

Open messaddek opened this issue 2 years ago • 0 comments

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

messaddek avatar Jun 06 '22 21:06 messaddek