I mean the spam filters of the email addresses being sent the emails. Nothing to do with your code or your server is my best guess based on your description.
Check your SMTP log and see if you are having any errors. If there aren't errors it usually means the email is sent just fine, and the problem is with the spam filter of the person receiving the email.