Hi @ismcagdas
handled as suggested with at try/catch - and wait, retry. Not a "nice" solution, but it works.
Hi @ismcagdas
just tested - if using the original code, and upload a logo file (png format) to the Tenant, then emails look OK.
The {EMAIL_LOGO_URL} - then serves a PNG file, and it shows fine in email.
Thats a work-a-round, but would be nice if the standard {EMAIL_LOGO_URL} - could serve a PNG instead of a SVG for the mails :-)
Hi @ismcagdas
yes I commented your original code (is below in screenshot) - so {EMAIL_LOGO_URL} is not in effect.
Hi,
A Hangfire job sends out mails to users. With about 100 mails to be send - system fails, after approx 20 mails.
I suppose it is our SMTP provider, that returns the error - but how can we avoid this? Is it possible to close the connection between sending each email? And would this solve the issue?
Hi,
9.0.1 MVC .NET CORE
Just a follow-up on #7719
We are using Microsoft 365 and when receiving mails from system - we still get "The Linked image cannot be displayed..." on the logo file.
The url: https://WEBSITE/TenantCustomization/GetTenantLogo?skin=light&tenantId=2 Returns the SVG file - and that is maybe the issue.
Changed to a base64 image: "data:image/svg+xml;base64,PD94bWwgd....."
Still getting "The Linked image cannot be displayed..."
Changed to png - base64 image. And now it is working :-)
Is this issue only related to Outlook?
v9.0.1 - MVC - .NET CORE
If I connect organization to a role instead of directly to the user - the call to "UserManager.GetOrganizationUnits" does not return any Orgnaizations. Is that intended?
If so is there another way to get a users organizations - if connected via a role?
Hi maliming and zony,
with inspiration from ismcagdas:
https://support.aspnetzero.com/QA/Questions/8843/EF-Core-3x-breaking-existing-EF-Core-2x-query#answer-cfa9c984-d70d-b7b3-3984-39f4951c1784
I have changed my code - and this actually works in my case :-) I also included search in sub-entities on Customers. A customer can have 0..N Calculations and a Calculation is connected to a Car.
public async Task<PagedResultDto<CustomerListDto>> GetCustomers(GetCustomersInput input)
{
var searchWords = new string[] { };
if (!input.Filter.IsNullOrWhiteSpace())
{
searchWords = input.Filter?.Split(new[] { " " }, StringSplitOptions.RemoveEmptyEntries);
}
var query = _customerRepository
.GetAll()
.Include(p => p.Calculations)
.ThenInclude(cm => cm.Car)
.WhereIf(input.CustomerTypeFilter != -1,
p => (int)p.CustomerType == input.CustomerTypeFilter
);
if (searchWords.Count() > 0)
{
var customerFilter = PredicateBuilder.New<Customer>();
foreach (var word in searchWords)
{
customerFilter = customerFilter.Or(customer => customer.CustomerName.Contains(word));
customerFilter = customerFilter.Or(customer => customer.AddressStreet.Contains(word));
customerFilter = customerFilter.Or(customer => customer.Calculations.Any(calculation => calculation.Car.Description.Contains(word)));
}
query = query.Where(customerFilter);
}
var customerCount = await query.CountAsync();
var customers = await query
.OrderBy(input.Sorting)
.PageBy(input)
.ToListAsync();
var customerListDtos = ObjectMapper.Map<List<CustomerListDto>>(customers);
return new PagedResultDto<CustomerListDto>(
customerCount,
customerListDtos
);
}
Hi,
issue gone after update to Core, MVC, jQuery project - v9.0.1
Case closed :-)