When can an SME send electronic direct marketing

Under the GDPR individuals have the right to object to their personal data being used for direct marketing purposes. So, when can an SME send electronic direct marketing? Electronic direct marketing involves the sending or making of unsolicited marketing...