UtilsGetEmailConfig Method

Retrieves SMTP account for all users or specified user that matches the passed mailTag

Definition

Namespace: MbcsCentral.Email
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
public static bool GetEmailConfig(
	string mailTag,
	out string message,
	out SmtpConfig smtp,
	out string fromEmail,
	bool ByAcct = false
)

Parameters

mailTag  String
REQUIRED mailTag to retrieve
message  String
Any error message generated
smtp  SmtpConfig
The SMTP account found
fromEmail  String
The EmailAddress of the SMTP acount, if found
ByAcct  Boolean  (Optional)
If looking for a user account this is set to TRUE

Return Value

Boolean
The SMTP account, if any, that matches the criteria

See Also