Base solution for your next web application
Open Closed

More detail on settings for emailsender #4106


User avatar
0
luckyduck created

I have been reading the documentation for EmailSender and need your help to fill in some missing pieces.

  1. I see a class called XXXSmtpEmailSenderConfiguration (where XXX=project name) in the Core module but I don't understand how it relates to the AppSettingProvider. I don't see it mentioned in [aspnetboilerplate.com/Pages/Documents/Email-Sending]). Do you have a code example that shows how the two go together?

  2. On Jan 20th Halil wrote in this thread [https://github.com/aspnetboilerplate/aspnetboilerplate/issues/988]) to change the encrypted email password, to "Whenever you change password and save with setting manager, save encrypted value". Can you please elaborate on this? Is there a command line utility that can be used to save it or does it need to be done in code? I would like to avoid having to promote new binaries to production every time the password expires.

Thank you.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    1. Methods are defined in the base class <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp/Net/Mail/Smtp/SmtpEmailSenderConfiguration.cs">https://github.com/aspnetboilerplate/as ... uration.cs</a>.

    2. This is a one time change actually. You can basicaly remove SmtpPassword setting on your AbpSettings table and insert the new password on Settings page if you remember the password at the moment.

    In that way, you will not need any console app or something like that.