UtilsGetEmailConfig Method
Retrieves SMTP account for all users or specified user that matches the passed mailTag
Namespace: MbcsCentral.EmailAssembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
public static bool GetEmailConfig(
string mailTag,
out string message,
out SmtpConfig smtp,
out string fromEmail,
bool ByAcct = false
)
- 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
BooleanThe SMTP account, if any, that matches the criteria