DannyC wrote:Nope. Reset the SMTP password plenty of times thinking that it was wrong.
In that case, messagebox out encryptionObject.ErrorMessage and it might provide the reason for the exception.
If it's "Invalid encryption type specified" then it's an environment issue - it doesn't have the required cryptographic cipher suites available, and you're likely ALSO silently getting this error when resetting the password (SELECT * FROM HR_Staff would reveal this - look for any rows with "ERROR" as the SMTP Password).
It it's "Both a string and a key are required" then the password contains unacceptable characters, or there is something funky going on with the environment culture and datetime formats.