Starts in:
1 DAY
16 HRS
22 MIN
31 SEC
Starts in:
1 D
16 H
22 M
31 S

Activities of "yorytang"

I have try to change web and api to different site and port, but failed when click login btn.

Thanks, this is https problem, the button click is ok now. but when click login it show 500 error, this is page error and my config below:

Answer

thanks

Answer

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.

https://github.com/abpframework/abp-samples/blob/master/EmailSendDemo/src/EmailSendDemo/Program.cs#L11

Do you mean I dont need to config email param manually, just need to add mailkit package and using IMailKitSmtpEmailSender to send mail?

Answer

it uses SettingProvider to get the configuration

See the following links:

  1. https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/EmailSenderConfiguration.cs
  2. https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingProvider.cs
  3. https://docs.abp.io/en/abp/latest/Modules/Setting-Management

I know how to get configuration now, it needs to inject ISettingProvider first,but ApplicationModule.cs dont have the Constructor to inject it.

Answer

Please confirm your email config is correct.

https://github.com/abpframework/abp-samples/blob/master/EmailSendDemo/src/EmailSendDemo/Program.cs#L11

Are these parameters not automatically read from the database,i have config it in setting page,why hardcode it?

Answer

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?

  1. Config email setting
  2. Delete NullEmailSender code.
Answer

hi

Check your xxxDomainModule. It will use NullEmailSender in DEBUG mode.

#if DEBUG 
    context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>()); 
#endif 

I have delete the code,but sending email error, is it caused by email setting error?

Answer

I can't reproduce the problem.

Could it be caused by this?

thanks

Showing 11 to 20 of 26 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06