Click or drag to resize
EmailHelperSettingsServerPassword Method
Gets the password for the default SMTP server for the specified site in either plain text or encrypted form.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 12.0.0
Syntax
C#
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: String
Password for the default SMTP server (in the settings).
See Also