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?
If you are in the context of a control that inherits from PortalModuleBaseis PortalSettingsavailable as a property, so it will look like
PortalModuleBase
PortalSettings
PortalSettings.Email
' get the current portal Dim portSettings As PortalSettings = PortalController.GetCurrentPortalSettings ' get email address Dim email as string = portSettings.Email
Source: https://habr.com/ru/post/1699565/More articles:Why Type.Equals (t1, t2) and not an equality operator? - equalsRunning a shell command from MySQL - database.NET Install Package Sometimes does not completely remove previous versions - c #Поиск людей для тестирования юзабилити - usabilityHow can I automatically specify or group command line arguments for an alias in bash? - bashOutlook Interop: how to iterate over all items in a folder - c #Django template system: how do I solve this loop / grouping / counting? - pythonДоступ к данным только для чтения - databaseС# штраф за количество строк кода? - performanceAvoid losing PostBack user input after an ASP.NET authentication session expires - asp.netAll Articles