diff --git a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj index aeedd35..8555fd0 100644 --- a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj @@ -1,6 +1,6 @@  - 10.7.0 + 10.7.1 1.0.0.0 User Provider User Provider diff --git a/src/UserDestinationWriter.cs b/src/UserDestinationWriter.cs index 8f3d0c2..ff0f2b9 100644 --- a/src/UserDestinationWriter.cs +++ b/src/UserDestinationWriter.cs @@ -1508,7 +1508,13 @@ public void SendUserPasswords() { if (!string.IsNullOrEmpty(_emailTemplate)) { - Dynamicweb.Rendering.Template tmpl = new Dynamicweb.Rendering.Template(_emailTemplate); + var path = $"/UserManagement/UserProvider/{_emailTemplate}"; + if (!System.IO.File.Exists(SystemInformation.MapPath($"/Files/Templates{path}"))) + { + _logger.Log($"E-mail template not found: '{path}'. Can't send user generated passwords."); + return; + } + Rendering.Template tmpl = new Rendering.Template(path); string fromEmail = _senderEmail; if (!Core.Helpers.StringHelper.IsValidEmailAddress(fromEmail))