ZadeShare what's your hosting company ? Do you have other sites with working email on the same server ? Some hosts disable outbound email by default and require contacting support to enable.
Can you share the exact error messages you receive ? See Flarum troubleshooting documentation page for how to find logs.