N-Tier-Architecture
N-Tier-Architecture copied to clipboard
Emails not working in production when publishing to IIS
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