diff --git a/src/PowderCoating.Infrastructure/Services/NotificationService.cs b/src/PowderCoating.Infrastructure/Services/NotificationService.cs index 5bf903c..3c09bc7 100644 --- a/src/PowderCoating.Infrastructure/Services/NotificationService.cs +++ b/src/PowderCoating.Infrastructure/Services/NotificationService.cs @@ -1535,7 +1535,15 @@ public class NotificationService : INotificationService .AsNoTracking() .FirstOrDefaultAsync(p => p.CompanyId == companyId && !p.IsDeleted); - return (prefs?.EmailFromAddress, prefs?.EmailFromName); + var email = prefs?.EmailFromAddress; + var name = prefs?.EmailFromName; + + if (string.IsNullOrWhiteSpace(email)) + _logger.LogWarning("No Reply-To email configured for company {CompanyId} — outgoing emails will show platform sender as reply address", companyId); + else + _logger.LogDebug("Reply-To for company {CompanyId}: {ReplyToEmail}", companyId, email); + + return (email, name); } ///