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

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 9.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 plaintext or encrypted form.

Return Value

Type: String
Password for the default SMTP server (in the settings).
See Also