A Microsoft platform for building enterprise-level data integration and data transformations solutions.
The login is fine. This error means the database couldn't be opened, not that authentication failed. SSMS connects to master by default, so a successful SSMS login doesn't confirm hMailserver itself is accessible.
Please run:
SELECT name, state_desc FROM sys.databases;
Then check whether hMailserver is listed, spelled/cased exactly right, and shows ONLINE. If it's missing, offline, or named differently, that's your cause.