IMAP synchronises incoming mail; SMTP sends messages. Use the mailbox password rather than the hosting panel password.
- Get the hostnames, ports and TLS settings from the mail provider. Use the full mailbox address as username if required. Do not guess ports or disable certificate verification.
- Test receipt and sending separately. If sending alone fails, check SMTP authentication and the selected TLS mode. Test webmail first to isolate the issue.