dotnet-starter-kit icon indicating copy to clipboard operation
dotnet-starter-kit copied to clipboard

[BUG] Email confirmation

Open zhikharka opened this issue 3 years ago • 3 comments

Describe the bug There is no email confirmation after registration

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Stack Trace If applicable, add in the error stack trace. By default, all the errors are logged to src/Bootsrapper/Logs/logs***.json. You can also find the stack trace details logged here.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

zhikharka avatar Jul 11 '22 14:07 zhikharka

Are you using the default email providers? or have you switched to some other SMTPs? By default, registration mails don't go to the actual email ID. They get sent to the ethereal mailbox, whose auth config you can see in our appsettings for mail.

iammukeshm avatar Jul 14 '22 10:07 iammukeshm

I have the same issue: No email confirmation is sent after register a user.

I have configured mail.json and i checked twice and i can confirm that the config is OK, but no email was sent...

Log: [11:02:15 ERR] Operation timed out after 120000 milliseconds System.TimeoutException: Operation timed out after 120000 milliseconds ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. at MailKit.Net.NetworkStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) --- End of inner exception stack trace --- at MailKit.Net.NetworkStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpStream.ReadAheadAsync(Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpStream.ReadResponseAsync(Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken) at FSH.WebApi.Infrastructure.Mailing.SmtpMailService.SendAsync(MailRequest request, CancellationToken cancellationToken) in C:\Users\RaFiTa\Desktop\VSCodeAPI\StoreX-WebAPI\src\Infrastructure\Mailing\SmtpMailService.cs:line 75

What can i do? Thanks

rafitajaen avatar Jul 21 '22 09:07 rafitajaen

Solved! I didn't figure out that it uses a TLS connection instead a SSL.

SSL port: 465 TLS port: 587

Just configure mail.json port to 587

rafitajaen avatar Jul 21 '22 09:07 rafitajaen