You can test your email settings from within the EE6 Control Panel.
Go to Tools/Utilities/Send Email and you get a form that allows you to send an email from the EE installation to an arbitrary email address.
Try to send yourself an email from there. If that doesn't work then the issue is with your outgoing email settings, not your form.
I think also you ...