What is the mail provider that you use for mail and what is the smtp server you have for sending your mail. It may be that the smpt mail provider, server, and/or its ip address have been flagged as a spammer and are on a list that mail providers use to block all mail from that sender.
Alternatively, if you are trying to send mail using an smtp program on your own computer or network special provisions need to be made to get your server recognized.
Another case is if you have an email address that is different from that of the server, the server may refuse to send it. Let's say you are receiving all mail from all your email addresses and the primary addess that you have set up is at your email provider, call it YourName@mailServer.com. But you want to send mail not only from your primary address YourName@mailServer.com but from an address that is in a private domain you own that does not have a mail server, maybe YourName@Smith.org. There are special settings that are not trivial and are different in each mail system. The Apple Mail program has things that need to be set up in the Mail program and in the System Preferences Accounts.
More details about what mail program you are using (is it Apple's Mail Program, Proton Mail, or what ??) and what your settings are (delete personal details and replace them with things like 'MyName, MyServer, NNN, XXX, etc) will be helpful.