Hello,
Right now I've configured gmail account to send flarum mails.
First step
Make and gmail account for your forum.
Turn on IMAP on setting.
Second step
Turn on two-step verification
Last step
Generate APP pasword in Password manager.

You will receive a string of 16 characters that you must enter as a password.