2 Answer(s)
-
0
The email settings can be configured in several places. The easiest one is using
appsettings.json
.The settings can also be retrieved from;
- Environment variables: See how you can read from environment variables
- AbpSettings database table
Getting settings from
AbpSettings
table
In debug mode, application will not send email (this is by design to avoid sending unwanted emails) it only logs the email content in your log file. See the
NullEmailSender
implementationTo send real emails even in debug mode, remove the marked code.
Important notice: The password field is encrypted, therefore you need to write the password as encrypted.
How to encrypt my email password? You can encrypt your email password with IStringEncryptionService
Inject
IStringEncryptionService
interface to a page model or wherever you can resolve, (you can also create simple encryption console app) -
0
Documented: https://docs.abp.io/en/abp/latest/Emailing