Open Closed

How to configure email settings #226


User avatar
0
alper created
Support Team Director

How / Where can I configure my email settings to send emails?


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    The email settings can be configured in several places. The easiest one is using appsettings.json.

    The settings can also be retrieved from;

    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 implementation

    To 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)

    Check out How-can-I-store-email-settings-in-database

  • User Avatar
    0
    hikalkan created
    Support Team Co-Founder

    Documented: https://docs.abp.io/en/abp/latest/Emailing

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09