Add and use appsetting in a plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi, I am making a plugin to send emails and I need to take the recipients from a config file.
Any idea how to take keys from an appsettings file?
Thanks.
5 years ago
I suppose it's something like
ConfigurationManager.AppSettings["yourkey"];

But I'd recommend that you create a 'settings' class in your plugin, which stores the data in the database, and you can have a configuration page for your plugin to set the value.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.