-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send an email when creating an account #16
Comments
The templates of the emails could be stored as razor templates, the same template files of asp.net core/mvc. For reference: |
I think is a good idea 😄 |
Sending emails is a very common feature and is always needs for any project. So if having it in place, would be a big help for developers. E.g we can have mail sending code function implementation in MailService.cs, it reads config from JSON setting file, and developers replace their STMP information. This has been mentioned in this issue #1036 |
@duymap Yes, It is a very common feature. It has been a long time since I did the coment above. There are libraries that do exactly what I described such as FluentEmail. But even a very simple email sending solution like SmtpClient should be enough. By the way, seems that Microsoft docs do not recommend using SmtpClient in new development due to the lack of modern protocols (see the full explanation here) and recommends using MailKit instead, or other email libraries. If you're willing to implement this and needs any help or assistance don't be afraid to ask |
Yes, willing to do. Just quick questions to ask for speeding up:
|
Here is the MailService class: And smtp credentials/configuration shoud be added at SecuritySettings class: SecuritySettings class is loaded with information from appsettings.{environment}.json during startup
It seems that develop is outdated. |
In the Java version, when creating an account, a user receives directly in his mailbox a confirmation email. We want to replicate this behavior in the .Net version. Another question then arises, where to store the templates of the mails ?
The text was updated successfully, but these errors were encountered: