So I'm using infinityfree to host a support page for my game, and basically, I was setting up my emails and the SMTP/IMAP and I am receiving the following error:
host doesn't allow connection
I am using resend as a SMTP Server
AdolfDidler
Judging by the error your host doesn't allow the connection. You should ask your web host to confirm ports 993 and 587 are open and that they allow external connections on them. If not then you will either need to ask them to open the ports or move to another one of their plans that allows connections on those ports; or move to another host entirely. Just to be on the safe side you should also double check with your mail provider to ensure the credentials and host information you are using is accurate.
Note: In the above suggestion of contacting your web host I'm assuming 993 and 587 are your IMAP and SMTP ports respectively. If your mail provider uses different ports then simply replace what I said with what your mail provider uses.
Cheers.