@alper, Great, thanks a lot.
@yekalkan, no, this a new solution based on module-pro template. it seems, it cannot get the template file from server?
Using Volo.Abp.MailKit resolved this issue.
Thanks for your help, Maliming.
yes, zero using MailKit. How to replace Volo.Abp.Mailing instead of Volo.Abp.MailKit in abp vNext?
"Settings": {
"Abp.Mailing.DefaultFromAddress": "email-sender@mydomain.com",
"Abp.Mailing.DefaultFromDisplayName": "email-sender",
"Abp.Mailing.Smtp.Host": "smtp.mydomain.com",
"Abp.Mailing.Smtp.Port": "25",
"Abp.Mailing.Smtp.Domain": "mail.mydomain.com",
"Abp.Mailing.Smtp.UseDefaultCredentials": "False",
"Abp.Mailing.Smtp.UserName": "email-sender@mydomain.com",
"Abp.Mailing.Smtp.Password": "not encrypted password",
"Abp.Mailing.Smtp.EnableSsl": "False"
}
One more question, is there a place to configure disable the email sending ?
I followed up your suggestion configured the mail settings in the appsettings.json, but the same configurations works fine under my AspNet Zero application, but failed in abp application, get below logs:
System.Net.Mail.SmtpException: Mailbox name not allowed. The server response was: authentication is required at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.MailCommand.EndSend(IAsyncResult result) at System.Net.Mail.SendMailAsyncResult.SendMailFromCompleted(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source) at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result) at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- 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 Volo.Abp.Account.Emailing.AccountEmailer.SendEmailConfirmationLinkAsync(IdentityUser user, String confirmationToken, String appName) at Volo.Abp.Account.AccountAppService.RegisterAsync(RegisterDto input)
I searched this exception on the web, still not get an avaialbe solution.
One more question: How to customize login and register form in the IdentiteryServer project? Or there is a place coude override the account module?
Resolved, can get the package now.
Fixed by clear the cache, follow below suggestion:
cmd> del "%UserProfile%.abp\cli\access-token.bin" && del "%UserProfile%.\AppData\Local\Temp\AbpLicense.bin"
Thanks for your help @maliming.