Here in Australia unless that particular user that received the emails gave consent to receive marketing emails (and the emails have identification + unsubscribe) it would be violating our Spam act.
https://www.acma.gov.au/publications/2024-07/guide/consumer-...