EmailHelperSettingsServerPassword Method |
Gets the password for the default SMTP server for the specified site in either plain text or encrypted form.
Namespace: CMS.EmailEngineAssembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 13.0.131
Syntax public static string ServerPassword(
string siteName,
bool encrypted = false
)
Parameters
- siteName
- Type: SystemString
Name of the site - encrypted (Optional)
- Type: SystemBoolean
Whether to return the password in plain text or encrypted form.
Return Value
Type:
StringPassword for the default SMTP server (in the settings).
See Also