Last post Feb 11, 2020 03:21 PM by Yunitok
Feb 11, 2020 10:31 AM|Yunitok|LINK
I'm getting an error trying to send an email in my web after publish (self-contained method in a linux server).
Controller sends email by smtpclient with html (formed with an html template and replace method in the stringbuilder). The problem is that the server says me that can't access to the specified root for the html template. Maybe I have to add something to
the publish method, .csproj file or is a configuration of the ngix in the server?
I add some pictures to be more clarifyfied.
This works in localhost with visual studio and IIS, but I need that this works in a linux server, I hope you can help me.
Thanks in advance.
Feb 11, 2020 03:18 PM|bruce (sqlwork.com)|LINK
Typically the views are not included in the publish. You will need to add them.
Feb 11, 2020 03:21 PM|Yunitok|LINK
Nice!!! I've added it in other place (with js and images folders in wwwtoot) and it works perfectly. Thank you so much!!
Can close this post.