Enter your email address here: Mail Settings Lookup - Apple Support
This will show the right settings for most kinds of accounts. Compare them with your settings on the iPhone.
If your problem persists, it’s necessary to know which kind of account can’t send emails: Gmail, Outlook, iCloud, ...?