At DotNetNuke, how do I get the admin email address?

I have a module that sends an email to the specified email address, but I want the email recipient to be the portal administrator by default. How can I get this information?

+3
source share
2 answers

If you are in the context of a control that inherits from PortalModuleBaseis PortalSettingsavailable as a property, so it will look like

PortalSettings.Email
+8
source
' get the current portal
Dim portSettings As PortalSettings = PortalController.GetCurrentPortalSettings

' get email address
Dim email as string = portSettings.Email
+2
source

Source: https://habr.com/ru/post/1699565/


All Articles