Want to send out verification mails via app deployed on Spaces


We are trying to send verification emails after the user registers. It works on the dev environment but when deployed on Spaces, the smtp connection times out. Do we need to request special ports for this to work? We have tried on ports 2525, 465 and 587.

Also we cannot use IMAP servers due to fastapi-mail’s limitations.

Space link: https://huggingface.co/spaces/CaffeineCrew/Techdocs

1 Like

hi @mayureshagashe2105 , outbound ports above 1024 should work, can you try it again with 2525?

hi @radames, thanks for your reply, I tried it again, not working. Here is the log that might be helpful.

@radames is there any other solution? I’m also trying to do a similar thing.