-
ABP Framework version: v4.3.0
-
UI type: Angular
-
DB provider: EF Core
-
Tiered (MVC) or Identity Server Separated (Angular): yes
-
Exception message and stack trace:
-
Steps to reproduce the issue:
I have configured mail setting , using IEmailSender object to send mail but dont receive any email and no error.
12 Answer(s)
-
0
hi
Check your xxxDomainModule. It will use NullEmailSender in DEBUG mode.
#if DEBUG context.Services.Replace(ServiceDescriptor.Singleton()); #endif
-
0
hi
Check your xxxDomainModule. It will use NullEmailSender in DEBUG mode.
#if DEBUG context.Services.Replace(ServiceDescriptor.Singleton()); #endif
I have delete the code,but sending email error, is it caused by email setting error?
-
0
HI
Please use this demo to check your mail config.
https://github.com/abpframework/abp-samples/tree/master/EmailSendDemo
-
0
I am a little confused about the mailing function. I think only 2 configurations are needed and no code is required.
What else do I need to do?-
Config email setting
-
Delete NullEmailSender code.
-
-
0
Please confirm your email config is correct.
-
0
Please confirm your email config is correct.
Are these parameters not automatically read from the database,i have config it in setting page,why hardcode it?
-
0
it uses
SettingProvider
to get the configurationSee the following links:
-
0
it uses
SettingProvider
to get the configurationSee the following links:
I know how to get configuration now, it needs to inject ISettingProvider first,but ApplicationModule.cs dont have the Constructor to inject it.
-
0
hi
Those code are unnecessary. the email module will get the configuration automatically.
https://docs.abp.io/en/abp/latest/Emailing
This is test program, You can use it to confirm your email setting is correct.
-
0
hi
Those code are unnecessary. the email module will get the configuration automatically.
https://docs.abp.io/en/abp/latest/Emailing
This is test program, You can use it to confirm your email setting is correct.
Do you mean I dont need to config email param manually, just need to add mailkit package and using IMailKitSmtpEmailSender to send mail?
-
0
You need confirm your email setting is correct.
-
0
thanks