Using New Outlook on Windows for professional communication and productivity
Dear Danny912
Welcome to the Microsoft Community.
Hello, your account is not working properly or is even insecure at the moment.
Usually when you receive an email like this, it means that your email was sent but failed to send, and you mentioned that you haven't used your account to send emails for a long time, so it's very likely that someone logged in to your account and sent an insecure email such as a phishing email.
You can check the recent sign-in activity for your account by logging in to this site and checking if there is any sign-in activity that is not by you:
Check the recent sign-in activity for your Microsoft account - Microsoft Support
First, make sure you change your account password on another secure device.
Change your Microsoft account password - Microsoft Support
Finally, you can add AU verification to increase the security of your account.
Download and install the Microsoft Authenticator app - Microsoft Support
If you have any other questions, or if you have something to add to your question, you are welcome to get back to me again and I will do my best to help you until the issue is resolved.
Best Regards,
Yolanda - MSFT | Microsoft Technical Support Community