Activities of "zhongfang"

  1. the ABP version is 4.3.3, too.
  2. the new project is 4.3.3, too.
  3. the logs of the new project (no error, no mail) is: 2021-12-07 14:39:21.176 +08:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: SettingManagement.Emailing 2021-12-07 14:39:21.177 +08:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpAccount.SettingManagement 2021-12-07 14:39:21.177 +08:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpIdentity.SettingManagement 2021-12-07 14:39:21.178 +08:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: LeptonThemeManagement.Settings 2021-12-07 14:39:21.246 +08:00 [INF] Authorization failed. These requirements were not met: DenyAnonymousAuthorizationRequirement: Requires an authenticated user. 2021-12-07 14:39:21.261 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44313/images/logo/logo-light.png - - 2021-12-07 14:39:21.261 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44313/libs/flag-icon-css/flags/1x1/gb.svg - - 2021-12-07 14:39:21.261 +08:00 [INF] The file /images/logo/logo-light.png was not modified 2021-12-07 14:39:21.262 +08:00 [INF] The file /libs/flag-icon-css/flags/1x1/gb.svg was not modified 2021-12-07 14:39:21.262 +08:00 [INF] Request finished HTTP/2 GET https://localhost:44313/images/logo/logo-light.png - - - 304 - image/png 0.5777ms 2021-12-07 14:39:21.262 +08:00 [INF] Request finished HTTP/2 GET https://localhost:44313/libs/flag-icon-css/flags/1x1/gb.svg - - - 304 - image/svg+xml 0.3216ms 2021-12-07 14:40:21.339 +08:00 [WRN] Unhandled exception rendering component: Syntax error, command unrecognized. The server response was: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result) at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result) --- End of stack trace from previous location --- at Volo.Abp.Emailing.Smtp.SmtpEmailSender.SendEmailAsync(MailMessage mail) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(MailMessage mail, Boolean normalize) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(String to, String subject, String body, Boolean isBodyHtml) at Demo433.Blazor.Pages.Test.SendEmail.SendTest() in C:\dev\gitlab\Demo433\aspnet-core\src\Demo433.Blazor\Pages\Test\SendEmail.razor.cs:line 24 at Demo433.Blazor.Pages.Test.SendEmail.OnInitializedAsync() in C:\dev\gitlab\Demo433\aspnet-core\src\Demo433.Blazor\Pages\Test\SendEmail.razor.cs:line 19 at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle) 2021-12-07 14:40:21.348 +08:00 [ERR] Unhandled exception in circuit 'kwUp1jmtH_Rc6-MDm2vn3Xykyz2QDXAFIZQT4z2Fwfw'. System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result) at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result) --- End of stack trace from previous location --- at Volo.Abp.Emailing.Smtp.SmtpEmailSender.SendEmailAsync(MailMessage mail) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(MailMessage mail, Boolean normalize) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(String to, String subject, String body, Boolean isBodyHtml) at Demo433.Blazor.Pages.Test.SendEmail.SendTest() in C:\dev\gitlab\Demo433\aspnet-core\src\Demo433.Blazor\Pages\Test\SendEmail.razor.cs:line 24 at Demo433.Blazor.Pages.Test.SendEmail.OnInitializedAsync() in C:\dev\gitlab\Demo433\aspnet-core\src\Demo433.Blazor\Pages\Test\SendEmail.razor.cs:line 19 at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle) 2021-12-07 14:40:21.368 +08:00 [INF] Executed endpoint '/_blazor' 2021-12-07 14:40:21.368 +08:00 [INF] Request finished HTTP/1.1 GET https://localhost:44313/_blazor?id=ehsPS3cBwAdsduTL_unX1w - - - 101 - - 60206.4197ms 2021-12-07 14:40:43.449 +08:00 [INF] Request starting HTTP/2 POST https://localhost:44313/_blazor/disconnect multipart/form-data;+boundary=---------------------------4834409823873905815870511039 393 2021-12-07 14:40:43.452 +08:00 [INF] No CORS policy found for the specified request. 2021-12-07 14:40:43.452 +08:00 [INF] Executing endpoint 'Blazor disconnect' 2021-12-07 14:40:43.453 +08:00 [INF] Executed endpoint 'Blazor disconnect' 2021-12-07 14:40:43.453 +08:00 [INF] Request finished HTTP/2 POST https://localhost:44313/_blazor/disconnect multipart/form-data;+boundary=---------------------------4834409823873905815870511039 393 - 200 0 - 3.4877ms
Question
  • ABP Framework version: v4.3.3

  • UI type: Blazor (Server Side)

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes

  • Exception message and stack trace: [2021-12-07T03:00:03.979Z] Error: Volo.Abp.AbpException: Setting value for 'Abp.Mailing.DefaultFromAddress' is null or empty! at Volo.Abp.Emailing.EmailSenderConfiguration.GetNotEmptySettingValueAsync(String name) at Volo.Abp.Emailing.EmailSenderBase.NormalizeMailAsync(MailMessage mail) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(MailMessage mail, Boolean normalize) at Volo.Abp.Emailing.EmailSenderBase.SendAsync(String to, String subject, String body, Boolean isBodyHtml)

  • Steps to reproduce the issue:" 1)get encypted password in debug mode. 2)store setting values in appsettings.json as follow "Settings": { "Abp.Localization.DefaultLanguage": "zh-Hans", "Volo.Abp.LeptonTheme.Style": "Style6", "Volo.Abp.LeptonTheme.Layout.MenuPlacement": "Top", "Volo.Abp.LeptonTheme.Layout.MenuStatus": "AlwaysOpened", "Volo.Abp.LeptonTheme.Layout.Boxed": "False", "Abp.Mailing.Smtp.Host": "smtp.exmail.qq.com", "Abp.Mailing.Smtp.Port": "465", "Abp.Mailing.Smtp.UserName": "no-reply@.com", "Abp.Mailing.Smtp.Password": "w8rSB5k/dFA==", "Abp.Mailing.Smtp.Domain": "", "Abp.Mailing.Smtp.EnableSsl": "true", "Abp.Mailing.Smtp.UseDefaultCredentials": "false", "Abp.Mailing.DefaultFromAddress": "no-reply@.com", "Abp.Mailing.DefaultFromDisplayName": "" } 3)prepare an empty Blazor razor page as below public partial class SendEmail { private readonly IEmailSender _emailSender; public SendEmail( IEmailSender emailSender) { _emailSender = emailSender; } protected override async Task OnInitializedAsync() { await this.SendTest(); }

      public async Task SendTest()
      {
          await _emailSender.SendAsync("****@qq.com",
              "测试",
              "正文内容.....");
      }
    

    } 4) in olde project ,got an exception as step 2. 5) I create a new solution via ABP suite 4.3.3, Blazor Server Side Application. with no error. but I can not receive the mail.

Showing 141 to 142 of 142 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11