Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emails not working in production when publishing to IIS #52

Open
messaddek opened this issue Jun 6, 2022 · 0 comments · Fixed by tcortega/N-Tier-Architecture#2
Open

Comments

@messaddek
Copy link

messaddek commented Jun 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant