- ABP Framework version: v8.0.0
- UI Type: Angular / MVC / Blazor WASM / Blazor Server
- Database System: EF Core (PostgreSQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
- Exception message and full stack trace:
- Steps to reproduce the issue:
We recently upgrade to ABP 8.0.0 and we're having errors of the Auth Server sending an email confirmation to a new user's email address. It does not send at all.
We use the SendEmailConfirmationTokenAsync() method from the AccountAppService to try to send this email to the user upon registering but the email never gets sent. When we downgrade to ABP 7 it will work though. We can't seem to find any documentation regarding our problem.
4 Answer(s)
-
0
hi
Are there any error/warning logs?
-
0
None that are different from the ABP 7 version, no. I got logs of both ABP 7 and ABP 8. 7 works, 8 doesn't - no obvious differences in the logs, no warnings/errors etc. nothing around that code has changed, the method still gets called with the same data.
-
0
hi
Can you share your project? So I can check your code.
liming.ma@volosoft.com
-
0
We found it was because the email send type was changed to Queued, but we had disabled background jobs in our auth server. We had to manually add the line of code
context.Services.Replace(ServiceDescriptor.Singleton<IBackgroundJobManager, NullBackgroundJobManager>());
even though the options had background jobs as disabled viaConfigure<AbpBackgroundJobOptions>(options => { options.IsJobExecutionEnabled = false; });
. Feels like it should take that into account, instead of the literal implementation type of IBackgroundJobManager.